TypeInputDynamicTextWithRecordUid extends AbstractFieldGenerator implements FieldGeneratorInterface

FinalYes

Generate data for type=input fields "lipsum 23" for some special children

Internal
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

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
string

match()

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
bool

checkMatchArray()

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

Return values
bool

        
On this page

Search results