ThemePreferences
extends Component
in package
implements
ThemePreferencesInterface
Default class for all theme preferences
Interfaces, Classes and Traits
- ThemePreferencesInterface
- Each theme define some preferences which control the classes and attributes of the page elements when they are rendered.
Table of Contents
- $view : ViewService
- getBlockAttributes() : array<string|int, string>
- Get block attributes
- getBlockClasses() : array<string|int, string>
- Get block classes
- getFieldAttributes() : array<string|int, string>
- Get field attributes
- getFieldClasses() : array<string|int, string>
- Get field classes
- getFieldContainerAttributes() : array<string|int, string>
- Get field container attributes
- getFieldContainerClasses() : array<string|int, string>
- Get field container classes
- getFieldLabelAttributes() : array<string|int, string>
- Get field label attributes
- getFieldLabelClasses() : array<string|int, string>
- Get field label classes
- getFileAttributes() : array<string|int, string>
- Get file attributes
- getFileClasses() : array<string|int, string>
- Get file classes
- getGroupAttributes() : array<string|int, string>
- Get group attributes
- getGroupClasses() : array<string|int, string>
- Get group classes
- getGroupContainerAttributes() : array<string|int, string>
- Get group container attributes
- getGroupContainerClasses() : array<string|int, string>
- Get group container classes
- getGroupLabelAttributes() : array<string|int, string>
- Get group container classes
- getGroupLabelClasses() : array<string|int, string>
- Get group label classes
- getLayoutAttributes() : array<string|int, string>
- Get layout attributes
- getLayoutClasses() : array<string|int, string>
- Get layout classes
- getRegionAttributes() : array<string|int, string>
- Get region attributes
- getRegionClasses() : array<string|int, string>
- Get region classes
- init() : void
- getElement() : Element|null
- Element getter
- getLayout() : LayoutInterface
- Layout getter
- getRegion() : RegionInterface
- Region getter
- getViewMode() : ViewModeInterface
- View mode getter
Properties
$view
protected
ViewService
$view
Methods
getBlockAttributes()
Get block attributes
public
getBlockAttributes(BlockInterface $block) : array<string|int, string>
Parameters
- $block : BlockInterface
Tags
Return values
array<string|int, string> —getBlockClasses()
Get block classes
public
getBlockClasses(BlockInterface $block) : array<string|int, string>
Parameters
- $block : BlockInterface
Tags
Return values
array<string|int, string> —getFieldAttributes()
Get field attributes
public
getFieldAttributes(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFieldClasses()
Get field classes
public
getFieldClasses(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFieldContainerAttributes()
Get field container attributes
public
getFieldContainerAttributes(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFieldContainerClasses()
Get field container classes
public
getFieldContainerClasses(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFieldLabelAttributes()
Get field label attributes
public
getFieldLabelAttributes(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFieldLabelClasses()
Get field label classes
public
getFieldLabelClasses(FieldInterface $field) : array<string|int, string>
Parameters
- $field : FieldInterface
Tags
Return values
array<string|int, string> —getFileAttributes()
Get file attributes
public
getFileAttributes(Asset $asset, FieldInterface $field, FileDisplayerInterface $displayer) : array<string|int, string>
Parameters
- $asset : Asset
- $field : FieldInterface
- $displayer : FileDisplayerInterface
Tags
Return values
array<string|int, string> —getFileClasses()
Get file classes
public
getFileClasses(Asset $asset, FieldInterface $field, FileDisplayerInterface $displayer) : array<string|int, string>
Parameters
- $asset : Asset
- $field : FieldInterface
- $displayer : FileDisplayerInterface
Tags
Return values
array<string|int, string> —getGroupAttributes()
Get group attributes
public
getGroupAttributes(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getGroupClasses()
Get group classes
public
getGroupClasses(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getGroupContainerAttributes()
Get group container attributes
public
getGroupContainerAttributes(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getGroupContainerClasses()
Get group container classes
public
getGroupContainerClasses(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getGroupLabelAttributes()
Get group container classes
public
getGroupLabelAttributes(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getGroupLabelClasses()
Get group label classes
public
getGroupLabelClasses(GroupInterface $group) : array<string|int, string>
Parameters
- $group : GroupInterface
Tags
Return values
array<string|int, string> —getLayoutAttributes()
Get layout attributes
public
getLayoutAttributes(LayoutInterface $layout[, bool $root = false ]) : array<string|int, string>
Parameters
- $layout : LayoutInterface
- $root : bool = false
-
true if we're rendering a page template
Tags
Return values
array<string|int, string> —getLayoutClasses()
Get layout classes
public
getLayoutClasses(LayoutInterface $layout[, bool $root = false ]) : array<string|int, string>
Parameters
- $layout : LayoutInterface
- $root : bool = false
-
true if we're rendering a page template
Tags
Return values
array<string|int, string> —getRegionAttributes()
Get region attributes
public
getRegionAttributes(RegionInterface $region) : array<string|int, string>
Parameters
- $region : RegionInterface
Tags
Return values
array<string|int, string> —getRegionClasses()
Get region classes
public
getRegionClasses(RegionInterface $region) : array<string|int, string>
Parameters
- $region : RegionInterface
Tags
Return values
array<string|int, string> —init()
public
init() : void
Tags
Return values
void —getElement()
Element getter
protected
getElement() : Element|null
Return values
Element|null —getLayout()
Layout getter
protected
getLayout() : LayoutInterface
Return values
LayoutInterface —getRegion()
Region getter
protected
getRegion() : RegionInterface
Return values
RegionInterface —getViewMode()
View mode getter
protected
getViewMode() : ViewModeInterface