Twohill\ElementalBioBlock\Block\BioBlock
Synopsis
class BioBlock
extends FileBlock
{
- // members
- private static array $db = ;
- private static string $singular_name = 'bio';
- private static string $plural_name = 'bios';
- private static string $table_name = 'T_EB_BioBlock';
- // methods
- public void getType()
- public void getCMSFields()
- public ArrayData|null CallToActionLink()
- public void getSummary()
- protected array provideBlockSchema()
- protected ArrayData|null decodeLinkData()
Hierarchy
Extends
- SilverStripe\ElementalFileBlock\Block\FileBlock
Members
private
- $db
- $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() — 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()