FinisherOptionsFlexFormOverridesConverter
Apply FlexForm finisher option overrides
Table of Contents
Properties
Methods
- __construct() : mixed
- __invoke() : void
- Used for overriding finisher options with flexform settings Flexform settings "win": When a setting is set in the form definition and in flexform the one in flexform will overwrite the one defined in the form definition.
- optionValueHasChanged() : bool
- Test if finisher option value differs from finisher definition.
Properties
$converterDto
protected
FlexFormFinisherOverridesConverterDto
$converterDto
Methods
__construct()
public
__construct(FlexFormFinisherOverridesConverterDto $converterDto) : mixed
Parameters
- $converterDto : FlexFormFinisherOverridesConverterDto
__invoke()
Used for overriding finisher options with flexform settings Flexform settings "win": When a setting is set in the form definition and in flexform the one in flexform will overwrite the one defined in the form definition.
public
__invoke(string $_, mixed $__, array<string|int, mixed> $matches) : void
Here we adjust the parsed configuration and apply the overrides.
Parameters
- $_ : string
-
unused in this context
- $__ : mixed
-
unused in this context
- $matches : array<string|int, mixed>
-
the expression matches from the ArrayProcessor - for example matches of ^(.*).config.type$
optionValueHasChanged()
Test if finisher option value differs from finisher definition.
protected
optionValueHasChanged(array<string, mixed> $finisherDefinition, string $optionPath, mixed $value) : bool
Compares the given finisher option value with the corresponding value in the
finisher definition. Returns true
if both values are equal, false
otherwise.
Parameters
- $finisherDefinition : array<string, mixed>
- $optionPath : string
- $value : mixed