SelectablePrototypeConfiguration
Read onlyYes
FinalYes
Typed representation of a single entry within "formManager.selectablePrototypesConfiguration".
Table of Contents
Properties
- $identifier : string
- $label : string|null
- $newFormTemplates : array<string|int, mixed>
Methods
- __construct() : mixed
- fromArray() : self
- hasTemplatePath() : bool
- Check whether the given template path is configured for this prototype.
- toArray() : array<string, mixed>
- Reproduce the raw configuration array, e.g. to hand it over to the JavaScript form manager app.
Properties
$identifier
public
string
$identifier
$label
public
string|null
$label
= null
$newFormTemplates
public
array<string|int, mixed>
$newFormTemplates
= []
Methods
__construct()
public
__construct(string $identifier[, string|null $label = null ][, array<int, NewFormTemplateConfiguration> $newFormTemplates = [] ]) : mixed
Parameters
- $identifier : string
- $label : string|null = null
- $newFormTemplates : array<int, NewFormTemplateConfiguration> = []
fromArray()
public
static fromArray(array<string, mixed> $configuration) : self
Parameters
- $configuration : array<string, mixed>
Return values
selfhasTemplatePath()
Check whether the given template path is configured for this prototype.
public
hasTemplatePath(string $templatePath) : bool
Parameters
- $templatePath : string
Return values
booltoArray()
Reproduce the raw configuration array, e.g. to hand it over to the JavaScript form manager app.
public
toArray() : array<string, mixed>