Documentation

FormFactoryBuilder
in package
implements FormFactoryBuilderInterface

The default implementation of FormFactoryBuilderInterface.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Interfaces

FormFactoryBuilderInterface
A builder for FormFactoryInterface objects.

Properties

$extensions  : array<string|int, FormExtensionInterface>
$forceCoreExtension  : bool
$resolvedTypeFactory  : mixed
$typeExtensions  : array<string|int, array<string|int, FormTypeExtensionInterface>>
$typeGuessers  : array<string|int, FormTypeGuesserInterface>
$types  : array<string|int, FormTypeInterface>

Methods

__construct()  : mixed
addExtension()  : $this
Adds an extension to be loaded by the factory.
addExtensions()  : $this
Adds a list of extensions to be loaded by the factory.
addType()  : $this
Adds a form type to the factory.
addTypeExtension()  : $this
Adds a form type extension to the factory.
addTypeExtensions()  : $this
Adds a list of form type extensions to the factory.
addTypeGuesser()  : $this
Adds a type guesser to the factory.
addTypeGuessers()  : $this
Adds a list of type guessers to the factory.
addTypes()  : $this
Adds a list of form types to the factory.
getFormFactory()  : FormFactoryInterface
Builds and returns the factory.
setResolvedTypeFactory()  : $this
Sets the factory for creating ResolvedFormTypeInterface instances.

Properties

Methods

__construct()

public __construct([bool $forceCoreExtension = false ]) : mixed
Parameters
$forceCoreExtension : bool = false

addExtensions()

Adds a list of extensions to be loaded by the factory.

public addExtensions(array<string|int, mixed> $extensions) : $this
Parameters
$extensions : array<string|int, mixed>

The extensions

Return values
$this

addTypeExtensions()

Adds a list of form type extensions to the factory.

public addTypeExtensions(array<string|int, mixed> $typeExtensions) : $this
Parameters
$typeExtensions : array<string|int, mixed>

The form type extensions

Return values
$this

addTypeGuessers()

Adds a list of type guessers to the factory.

public addTypeGuessers(array<string|int, mixed> $typeGuessers) : $this
Parameters
$typeGuessers : array<string|int, mixed>

The type guessers

Return values
$this

addTypes()

Adds a list of form types to the factory.

public addTypes(array<string|int, mixed> $types) : $this
Parameters
$types : array<string|int, mixed>

The form types

Return values
$this

        
On this page

Search results