DNADesign\Elemental\Extensions\ElementalPageExtension
Synopsis
class ElementalPageExtension
extends ElementalAreasExtension
{
- // members
- private static array $has_one = ;
- private static array $owns = ;
- private static array $cascade_duplicates = ;
- // methods
- public string getElementsForSearch()
- public void MetaTags()
- // Inherited methods from ElementalAreasExtension
- public array getElementalTypes()
- public array getElementalRelations()
- public void updateCMSFields()
- public void onBeforeWrite()
- public boolean supportsElemental()
- public DataObject ensureElementalAreasExist()
- public void requireDefaultRecords()
Hierarchy
Members
private
- $cascade_duplicates
- $has_one
- $owns
Methods
public
- MetaTags()
- getElementsForSearch() — Returns the contents of each ElementalArea has_one's markup for use in Solr or Elastic search indexing
Inherited from DNADesign\Elemental\Extensions\ElementalAreasExtension
public
- ensureElementalAreasExist() — Set all has_one relationships to an ElementalArea to a valid ID if they're unset
- getElementalRelations() — Returns an array of the relation names to ElementAreas. Ignores any has_one fields named `Parent` as that would indicate that this is child of an existing area
- getElementalTypes() — Get the available element types for this page type,
- onBeforeWrite() — Make sure there is always an ElementalArea for adding Elements
- requireDefaultRecords() — Extension hook {@see DataObject::requireDefaultRecords}
- supportsElemental()
- updateCMSFields() — Setup the CMS Fields