Broarm\PageSlices\PageContentSlice
Class PageContentSlice
Synopsis
class PageContentSlice
extends PageSlice
{
- // members
- private static string $table_name = 'PageContentSlice';
- private static string $slice_image = 'resources/bramdeleeuw/silverstripe-pageslices/images/PageContentSlice.png';
- private static array $defaults = ;
- // Inherited members from PageSlice
- protected PageSliceController $controller;
- // methods
- public void getCMSFields()
- public void onBeforeWrite()
- // Inherited methods from PageSlice
- public FieldList getCMSFields()
- public void onBeforeWrite()
- public void onAfterDuplicate()
- public string getSliceType()
- public string getCSSName()
- public string getSliceImage()
- public PageSliceController getController()
- public array fieldLabels()
- public ValidationResult validate()
- public void canView()
- public void canEdit()
- public void canDelete()
- public void canCreate()
Hierarchy
Extends
Members
private
- $defaults
- $slice_image
- $table_name
protected
- $controller — Broarm\PageSlices\PageSliceController
Methods
public
Inherited from Broarm\PageSlices\PageSlice
public
- canCreate()
- canDelete()
- canEdit()
- canView()
- fieldLabels() — Register field labels
- getCMSFields()
- getCSSName() — Return a nice css name
- getController()
- getSliceImage() — Return the path to the section image
- getSliceType() — Return the translated ClassName
- onAfterDuplicate() — If this slice holds has_many content on duplicate copy the content over
- onBeforeWrite()
- validate() — Validate the slice type