FormDataCompiler

class \TYPO3\CMS\Backend\Form\FormDataCompiler

Create and return a defined array of data ready to be used by the container / element render part of FormEngine

Table of Contents

Properties

$formDataGroup  : FormDataGroupInterface
Data group that provides data
$removeKeysFromFinalResultArray  : array
List of top level array elements to be unset from result array before final result is returned.

Methods

__construct()  : mixed
Get form data group injected
compile()  : array
Main entry method maps given data input array and sanitizes some crucial input parameters and calls compile on FormDataGroupInterface.
initializeResultArray()  : array

Properties

$removeKeysFromFinalResultArray

List of top level array elements to be unset from result array before final result is returned.

protected array $removeKeysFromFinalResultArray = []

Methods

compile()

Main entry method maps given data input array and sanitizes some crucial input parameters and calls compile on FormDataGroupInterface.

public compile(array $initialData) : array

Parameters

$initialData : array

Initial set of data to map into result array

Tags

throws
InvalidArgumentException
throws
UnexpectedValueException

Return values

array —

Result with data

initializeResultArray()

protected initializeResultArray() : array

Return values

array
On this page