Broarm\PageSlices\Block\TextBlock
Class TextBlock
- Author: Bram de Leeuw
Synopsis
class TextBlock
extends Block
{
- // members
- private static string $table_name = 'PageSlicesTextBlock';
- private static array $db = ;
- private static string $block_image = 'bramdeleeuw/silverstripe-pageslices-blocks:client/images/TextBlock.png';
- // Inherited members from Block
- protected BlockController $controller;
- // Inherited methods from Block
- public FieldList getCMSFields()
- public void validate()
- public void onAfterDuplicate()
- public string getBlockType()
- public string getCSSName()
- public string getBlockImage()
- public BlockController getController()
- public mixed getBetterButtonsUtils()
- public static array getAvailableBlocks()
Hierarchy
Extends
Members
private
- $block_image
- $db
- $table_name
protected
- $controller — Broarm\PageSlices\Block\BlockController
Methods
Inherited from Broarm\PageSlices\Block\Block
public
- getAvailableBlocks() — Get the available block types
- getBetterButtonsUtils() — Remove the add new button from the utility list Because of the multi class, add new would create a new base class that should not be used (Could be replaced with an add new multi class button)
- getBlockImage() — Return the path to the section image
- getBlockType() — Return the translated ClassName
- getCMSFields()
- getCSSName() — Return a nice css name
- getController()
- onAfterDuplicate() — If this block holds has_many content on duplicate copy the content over
- validate()