ElementLayout
Common methods for layouts that are attached to elements (not customs or defaults layouts)
Table of Contents
- $_fieldLayout : FieldLayout
- getCraftFields() : array<string|int, mixed>
- getFieldLayout() : FieldLayout
- Get layout's element field layout.
- getTemplatingKey() : string
- hasDisplays() : bool
Properties
$_fieldLayout
protected
FieldLayout
$_fieldLayout
Methods
getCraftFields()
public
getCraftFields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getFieldLayout()
Get layout's element field layout.
public
getFieldLayout() : FieldLayout
We create the layout again here due to an issue in Craft where layout fields aren't properly propagated
Tags
Return values
FieldLayout —getTemplatingKey()
public
getTemplatingKey() : string
Tags
Return values
string —hasDisplays()
public
hasDisplays() : bool