IQnection\PageBuilder\ContentBuilder\Block\Block
Synopsis
class Block
extends DataObject
implements
Flushable
{
- // members
- private static string $table_name = 'ContentBuilderBlock';
- private static string $singular_name = 'Block';
- private static string $plural_name = 'Blocks';
- private static string $anchor_regex = '/\\<[^\\>]*(?:name|id)[\\s=]*[\\"\']([^\\"\']*)[\\"\']/im';
- private static string $type_title = 'Unknown Block Type';
- private static array $db = ;
- private static array $has_one = ;
- private static array $summary_fields = ;
- private static string $default_sort = 'SortOrder ASC';
- private static array $widths = ;
- // methods
- public void getCMSFields()
- public static void flush()
- public void getAnchorsInContent()
- public void getBetterButtonsActions()
- protected void cleanCssClassName()
- public void SectionCSSClasses()
- public void ElementHTMLID()
- public void CSSClasses()
- public void getCustomCSS()
- public void onAfterWrite()
- public void getTitle()
- public void getDescription()
- public void CMSPreview()
- public void forTemplate()
- public void getCacheName()
- public void Render()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\Core\Flushable
Members
private
- $anchor_regex
- $db
- $default_sort
- $has_one
- $plural_name
- $singular_name
- $summary_fields
- $table_name
- $type_title
-
$widths
Set values in site yml config expects array of key: value pairs where key is the title to display in the dropdown and value is the css class declared in your stylesheet