class FormFactoryBuilder implements FormFactoryBuilderInterface

The default implementation of FormFactoryBuilderInterface.

Methods

$this
setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory)

Sets the factory for creating ResolvedFormTypeInterface instances.

$this
addExtension(FormExtensionInterface $extension)

Adds an extension to be loaded by the factory.

$this
addExtensions(array $extensions)

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

$this
addType(FormTypeInterface $type)

Adds a form type to the factory.

$this
addTypes(array $types)

Adds a list of form types to the factory.

$this
addTypeExtension(FormTypeExtensionInterface $typeExtension)

Adds a form type extension to the factory.

$this
addTypeExtensions(array $typeExtensions)

Adds a list of form type extensions to the factory.

$this
addTypeGuesser(FormTypeGuesserInterface $typeGuesser)

Adds a type guesser to the factory.

$this
addTypeGuessers(array $typeGuessers)

Adds a list of type guessers to the factory.

getFormFactory()

Builds and returns the factory.

Details

at line 49
$this setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory)

Sets the factory for creating ResolvedFormTypeInterface instances.

Parameters

ResolvedFormTypeFactoryInterface $resolvedTypeFactory

Return Value

$this

at line 59
$this addExtension(FormExtensionInterface $extension)

Adds an extension to be loaded by the factory.

Parameters

FormExtensionInterface $extension

Return Value

$this

at line 69
$this addExtensions(array $extensions)

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

Parameters

array $extensions The extensions

Return Value

$this

at line 79
$this addType(FormTypeInterface $type)

Adds a form type to the factory.

Parameters

FormTypeInterface $type

Return Value

$this

at line 89
$this addTypes(array $types)

Adds a list of form types to the factory.

Parameters

array $types The form types

Return Value

$this

at line 101
$this addTypeExtension(FormTypeExtensionInterface $typeExtension)

Adds a form type extension to the factory.

Parameters

FormTypeExtensionInterface $typeExtension

Return Value

$this

at line 117
$this addTypeExtensions(array $typeExtensions)

Adds a list of form type extensions to the factory.

Parameters

array $typeExtensions The form type extensions

Return Value

$this

at line 129
$this addTypeGuesser(FormTypeGuesserInterface $typeGuesser)

Adds a type guesser to the factory.

Parameters

FormTypeGuesserInterface $typeGuesser

Return Value

$this

at line 139
$this addTypeGuessers(array $typeGuessers)

Adds a list of type guessers to the factory.

Parameters

array $typeGuessers The type guessers

Return Value

$this

at line 149
FormFactoryInterface getFormFactory()

Builds and returns the factory.

Return Value

FormFactoryInterface The form factory