SilverStripe\ElementalBannerBlock\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 block';
- private static string $plural_name = 'banner blocks';
- private static string $table_name = 'S_EB_BannerBlock';
- // methods
- public void getType()
- public void getCMSFields()
- public string|null getCallToActionLink()
- public ArrayData|null CallToActionLink()
- public void getSummary()
- protected array provideBlockSchema()
- protected ArrayData|null decodeLinkData()
Hierarchy
Extends
- SilverStripe\ElementalFileBlock\Block\FileBlock
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
- provideBlockSchema() — Return content summary for summary section of ElementEditor
public
- CallToActionLink() — Used for the frontend templates, returns a parsed set of data
- getCMSFields()
- getCallToActionLink() — Accessor for `CallToActionLink` i.e. $block->CallToActionLink
- getSummary() — Add the banner content instead of the image title
- getType()