ArrayFormFactory extends AbstractFormFactory

A factory that creates a FormDefinition from an array

Scope: frontend / backend

Attributes
#[Autoconfigure]
$public: true
$shared: false

Table of Contents

Properties

$eventDispatcher  : EventDispatcherInterface|null

Methods

build()  : FormDefinition
Build a form definition, depending on some configuration.
injectEventDispatcher()  : void
addNestedRenderable()  : mixed
Add form elements to the $parentRenderable
triggerFormBuildingFinished()  : FormDefinition

Properties

$eventDispatcher

protected EventDispatcherInterface|null $eventDispatcher = null

Methods

build()

Build a form definition, depending on some configuration.

public build(array<string|int, mixed> $configuration[, string|null $prototypeName = null ][, ServerRequestInterface|null $request = null ]) : FormDefinition
Parameters
$configuration : array<string|int, mixed>

factory-specific configuration array

$prototypeName : string|null = null

The name of the "PrototypeName" to use; it is factory-specific to implement this.

$request : ServerRequestInterface|null = null

The PSR-7 request object

Internal
Tags
throws
RenderingException
Return values
FormDefinition

a newly built form definition

injectEventDispatcher()

public injectEventDispatcher(EventDispatcherInterface $eventDispatcher) : void
Parameters
$eventDispatcher : EventDispatcherInterface

addNestedRenderable()

Add form elements to the $parentRenderable

protected addNestedRenderable(array<string|int, mixed> $nestedRenderableConfiguration, CompositeRenderableInterface $parentRenderable[, ServerRequestInterface|null $request = null ]) : mixed
Parameters
$nestedRenderableConfiguration : array<string|int, mixed>
$parentRenderable : CompositeRenderableInterface
$request : ServerRequestInterface|null = null
Tags
throws
IdentifierNotValidException
throws
UnknownCompositRenderableException

        
On this page

Search results