TypeInputDynamicTextWithRecordUid extends AbstractFieldGenerator implements FieldGeneratorInterface
FinalYes
Generate data for type=input fields "lipsum 23" for some special children
Attributes
- #[Autoconfigure]
- $public: true
Table of Contents
Interfaces
- FieldGeneratorInterface
- Interface for field value generators
Properties
- $matchArray : array<string|int, mixed>
Methods
- __construct() : mixed
- generate() : string
- To determine different children in an easy way, this input field generates a string combined with the record uid
- match() : bool
- Some inline scenarios need multiple children table rows. To distinct those rows from each other, the uid of the row is added.
- checkMatchArray() : bool
- Recursive compare of $data with $matchArray.
Properties
$matchArray
protected
array<string|int, mixed>
$matchArray
= ['fieldConfig' => ['config' => ['type' => 'input']]]
If all of these settings are identical to given values, match is true
Methods
__construct()
public
__construct(KauderwelschService $kauderwelschService) : mixed
Parameters
- $kauderwelschService : KauderwelschService
generate()
To determine different children in an easy way, this input field generates a string combined with the record uid
public
generate(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
Return values
stringmatch()
Some inline scenarios need multiple children table rows. To distinct those rows from each other, the uid of the row is added.
public
match(array<string|int, mixed> $data) : bool
This match() is hardcoded for some specific child tables only.
Parameters
- $data : array<string|int, mixed>
Return values
boolcheckMatchArray()
Recursive compare of $data with $matchArray.
protected
checkMatchArray(array<string|int, mixed> $data, array<string|int, mixed> $matchArray) : bool
Parameters
- $data : array<string|int, mixed>
-
Given data
- $matchArray : array<string|int, mixed>
-
Part to mach against