SilverStripe\ElementalBlocks\Block\BannerBlock
Synopsis
class BannerBlock
extends FileBlock
{
- // members
- private static string $icon = 'font-icon-block-banner';
- private static array $db = ;
- private static string $singular_name = 'banner';
- private static string $plural_name = 'banners';
- private static string $table_name = 'S_EB_BannerBlock';
- // methods
- public void getType()
- public void getCMSFields()
- public ArrayData|null CallToActionLink()
- public void getSummary()
- protected ArrayData|null decodeLinkData()
- // Inherited methods from FileBlock
- public void getType()
- public void getSummary()
- public DBHTMLText getSummaryThumbnail()
Hierarchy
Members
private
- $db
- $icon
- $plural_name
- $singular_name
- $table_name
Methods
protected
- decodeLinkData() — Given a set of JSON data, decode it, attach the relevant Page object and return as ArrayData
public
- CallToActionLink() — For the frontend, return a parsed set of data for use in templates
- getCMSFields()
- getSummary() — Add the banner content instead of the image title
- getType()
Inherited from SilverStripe\ElementalBlocks\Block\FileBlock
public
- getSummary()
- getSummaryThumbnail() — Return a thumbnail of the file, if it's an image. Used in GridField preview summaries.
- getType()