FormEngineDefinition uses ConfigurationValueNormalizationTrait, RawConfigurationTrait
Read onlyYes
FinalYes
Open FormEngine metadata of a finisher or prototype.
Table of Contents
Properties
- $elements : array<string|int, mixed>
- $label : string|null
- $raw : array<string|int, mixed>
- $translationFiles : array<string|int, mixed>
Methods
- __construct() : mixed
- fromArray() : self
- get() : mixed
- Read a value from the raw configuration using a dot-separated path.
- getRaw() : array<string, mixed>
- Return the complete raw configuration array this DTO was built from.
- has() : bool
- Check whether the given dot-separated path exists in the raw configuration.
Properties
$elements
public
array<string|int, mixed>
$elements
$label
public
string|null
$label
$raw
public
array<string|int, mixed>
$raw
$translationFiles
public
array<string|int, mixed>
$translationFiles
Methods
__construct()
public
__construct(array<string, mixed> $raw, string|null $label, array<int|string, mixed> $elements, array<int, string> $translationFiles) : mixed
Parameters
- $raw : array<string, mixed>
- $label : string|null
- $elements : array<int|string, mixed>
- $translationFiles : array<int, string>
fromArray()
public
static fromArray(array<string, mixed> $configuration) : self
Parameters
- $configuration : array<string, mixed>
Return values
selfget()
Read a value from the raw configuration using a dot-separated path.
public
get(string $path[, mixed $default = null ]) : mixed
Example: $dto->get('formEditor.dynamicJavaScriptModules.app').
Parameters
- $path : string
- $default : mixed = null
getRaw()
Return the complete raw configuration array this DTO was built from.
public
getRaw() : array<string, mixed>
Use this to reach custom keys that are not (yet) mapped to typed properties, e.g. properties registered by third-party extensions.
Return values
array<string, mixed>has()
Check whether the given dot-separated path exists in the raw configuration.
public
has(string $path) : bool
Parameters
- $path : string