CreateRecordDryRunResult

final readonly class \TYPO3\CMS\Reactions\Reaction\CreateRecordDryRunResult

The outcome of CreateRecordDryRun. It wraps the CreateRecordResolution, which only knows the payload and the field map, with the obstacles outside of it, such as a disabled reaction or a missing page permission, and with the username and field labels the backend module displays.

Table of Contents

Properties

$fieldLabels  : array
$obstacles  : array
$resolution  : CreateRecordResolution|null
$username  : string

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(CreateRecordResolution|null $resolution, array<int, DryRunObstacle> $obstacles, string $username, array<string, string> $fieldLabels) : mixed

Parameters

$resolution : CreateRecordResolution|null

null where there was no payload to resolve

$obstacles : array<int, DryRunObstacle>
$username : string

the impersonated user, empty where there is none

$fieldLabels : array<string, string>

the TCA label per field of the resolution

On this page