Broarm\PageSlices\PageSlicesExtension
Class PageSlicesExtension
Synopsis
class PageSlicesExtension
extends DataExtension
{
- // members
- private static array $default_slices = ;
- private static array $has_many = ;
- // methods
- public void updateCMSFields()
- public void getAvailableSlices()
- public ArrayList getSlices()
- public void onAfterWrite()
- public void onAfterDuplicate()
- public bool isValidClass()
- public bool hasNoSlices()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $default_slices
- $has_many
Methods
public
- getAvailableSlices()
- getSlices() — Get the slice controllers
- hasNoSlices() — Check if the current obj has no page slices already created
- isValidClass() — Check if the class is not in the exception list
- onAfterDuplicate() — Loop over and copy the attached page slices
- onAfterWrite()
- updateCMSFields()