ConfigDefault extends AbstractFieldGenerator implements FieldGeneratorInterface
FinalYes
Use "default" value if set in config
Table of Contents
Interfaces
- FieldGeneratorInterface
- Interface for field value generators
Properties
- $matchArray : array<string|int, mixed>
Methods
- generate() : string
- Returns the value of ['config']['default']
- match() : bool
- Match if ['config']['default'] is set.
- checkMatchArray() : bool
- Recursive compare of $data with $matchArray.
Properties
$matchArray
protected
array<string|int, mixed>
$matchArray
= []
If all of these settings are identical to given values, match is true
Methods
generate()
Returns the value of ['config']['default']
public
generate(array<string|int, mixed> $data) : string
Parameters
- $data : array<string|int, mixed>
Return values
stringmatch()
Match if ['config']['default'] is set.
public
match(array<string|int, mixed> $data) : bool
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