‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter Class Reference

Public Member Functions

 __construct (FlexFormFinisherOverridesConverterDto $converterDto)
 
 __invoke (string $_, $__, array $matches)
 

Protected Member Functions

 optionValueHasChanged (array $finisherDefinition, string $optionPath, mixed $value)
 

Protected Attributes

FlexFormFinisherOverridesConverterDto $converterDto
 

Detailed Description

Apply FlexForm finisher option overrides

Definition at line 28 of file FinisherOptionsFlexFormOverridesConverter.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter::__construct ( FlexFormFinisherOverridesConverterDto  $converterDto)

Member Function Documentation

◆ __invoke()

TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter::__invoke ( string  $_,
  $__,
array  $matches 
)

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.

Here we adjust the parsed configuration and apply the overrides.

Parameters
string$_‪unused in this context
mixed$__‪unused in this context
array$matches‪the expression matches from the ArrayProcessor - for example matches of ^(.*).config.type$

Definition at line 51 of file FinisherOptionsFlexFormOverridesConverter.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\getValueByPath(), TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter\optionValueHasChanged(), and TYPO3\CMS\Core\Utility\ArrayUtility\setValueByPath().

◆ optionValueHasChanged()

TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter::optionValueHasChanged ( array  $finisherDefinition,
string  $optionPath,
mixed  $value 
)
protected

Test if finisher option value differs from finisher definition.

Compares the given finisher option value with the corresponding value in the finisher definition. Returns true if both values are equal, false otherwise.

Parameters
array<string,mixed>‪$finisherDefinition

Definition at line 105 of file FinisherOptionsFlexFormOverridesConverter.php.

References TYPO3\CMS\Core\Utility\ArrayUtility\getValueByPath().

Referenced by TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter\__invoke().

Member Data Documentation

◆ $converterDto

FlexFormFinisherOverridesConverterDto TYPO3\CMS\Form\Domain\Configuration\FormDefinition\Converters\FinisherOptionsFlexFormOverridesConverter::$converterDto
protected