Craft Themes (3.x)

ThemePreferencesInterface

Each theme define some preferences which control the classes and attributes of the page elements when they are rendered.

Those elements are : Layout, Block, Region, File, Field and Groups

Table of Contents

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

Methods

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

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

Return values
array<string|int, string>

Search results