FormDataCompiler
Create and return a defined array of data ready to be used by the container / element render part of FormEngine
Table of Contents
Methods
- __construct() : mixed
- compile() : array<string|int, mixed>
- Main entry method maps given data input array and sanitizes some crucial input parameters and calls compile on FormDataGroupInterface.
Methods
__construct()
public
__construct([FormDataGroupInterface|null $formDataGroup = null ]) : mixed
Remove constructor in v13 and change controllers to get FormDataCompiler injected.
Parameters
- $formDataGroup : FormDataGroupInterface|null = null
compile()
Main entry method maps given data input array and sanitizes some crucial input parameters and calls compile on FormDataGroupInterface.
public
compile(array<string|int, mixed> $initialData[, FormDataGroupInterface|null $formDataGroup = null ]) : array<string|int, mixed>
Parameters
- $initialData : array<string|int, mixed>
-
Initial set of data to map into result array
- $formDataGroup : FormDataGroupInterface|null = null