DisplaySuperTableType
extends Model
in package
Class that handles a block type inside a super table
Table of Contents
- $fields : array<string|int, mixed>
- $type_id : int
- The matrix block type id
- $_type : SuperTableBlockType
- fields() : array<string|int, mixed>
- getConfig() : array<string|int, mixed>
- Get project config
- getFieldById() : FieldInterface|null
- Find a field by craft field id
- getType() : SuperTableBlockType
- Super table block type getter
- setType() : mixed
- Super table block type setter
Properties
$fields
public
array<string|int, mixed>
$fields
= []
$type_id
The matrix block type id
public
int
$type_id
$_type
private
SuperTableBlockType
$_type
Methods
fields()
public
fields() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getConfig()
Get project config
public
getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getFieldById()
Find a field by craft field id
public
getFieldById(int $craftFieldId) : FieldInterface|null
Parameters
- $craftFieldId : int
Return values
FieldInterface|null —getType()
Super table block type getter
public
getType() : SuperTableBlockType
Return values
SuperTableBlockType —setType()
Super table block type setter
public
setType(SuperTableBlockType $type) : mixed
Parameters
- $type : SuperTableBlockType