ArrayFormFactory extends AbstractFormFactory
A factory that creates a FormDefinition from an array
Scope: frontend / backend
Table of Contents
Methods
- build() : FormDefinition
- Build a form definition, depending on some configuration.
- addNestedRenderable() : mixed
- Add form elements to the $parentRenderable
- triggerFormBuildingFinished() : mixed
- Helper to be called by every AbstractFormFactory after everything has been built to call the "afterBuildingFinished" hook on all form elements.
Methods
build()
Build a form definition, depending on some configuration.
public
build(array<string|int, mixed> $configuration[, string $prototypeName = null ]) : FormDefinition
Parameters
- $configuration : array<string|int, mixed>
- $prototypeName : string = null
Tags
Return values
FormDefinitionaddNestedRenderable()
Add form elements to the $parentRenderable
protected
addNestedRenderable(array<string|int, mixed> $nestedRenderableConfiguration, CompositeRenderableInterface $parentRenderable) : mixed
Parameters
- $nestedRenderableConfiguration : array<string|int, mixed>
- $parentRenderable : CompositeRenderableInterface
Tags
triggerFormBuildingFinished()
Helper to be called by every AbstractFormFactory after everything has been built to call the "afterBuildingFinished" hook on all form elements.
protected
triggerFormBuildingFinished(FormDefinition $form) : mixed
Parameters
- $form : FormDefinition