NSWDPC\Elemental\Models\DecoratedContent\ElementDecoratedContent
Provides an decorated ElementContent with extra-fun fields
- Author: James
Synopsis
class ElementDecoratedContent
extends ElementContent
{
- // members
- private static boolean $inline_editable = false;
- private static string $singular_name = 'Decorated content';
- private static string $plural_name = 'Decorated content';
- private static string $table_name = 'ElementDecoratedContent';
- private static string $icon = 'font-icon-block-banner';
- private static string $title = 'Decorated content';
- private static string $description = 'A content element with extra fields';
- private static array $db = ;
- private static array $defaults = ;
- private static array $has_one = ;
- private static array $many_many = ;
- private static array $owns = ;
- private static array $searchable_fields = ;
- private static array $video_providers = ;
- // methods
- protected DataList|null getTaxonomyTerms()
- public void getType()
- public void onBeforeWrite()
- public void getCmsFields()
- protected void getLinkField()
Hierarchy
Extends
- DNADesign\Elemental\Models\ElementContent
Members
private
- $db
- $defaults
- $description
- $has_one
- $icon
- $inline_editable
- $many_many
- $owns
- $plural_name
- $searchable_fields
—
array
Defines a default list of filters for the search context - $singular_name
- $table_name
- $title
- $video_providers
—
array
Defines available video providers
Methods
protected
- getLinkField() — Return the field used to handle linking
- getTaxonomyTerms() — Get available taxonomy terms