FormFactoryBuilderInterface
interface FormFactoryBuilderInterface
A builder for FormFactoryInterface objects.
Methods
$this
setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
Sets the factory for creating ResolvedFormTypeInterface instances.
$this
$this
addExtensions(array $extensions)
Adds a list of extensions to be loaded by the factory.
$this
$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
$this
addTypeGuessers(array $typeGuessers)
Adds a list of type guessers to the factory.
getFormFactory()
Builds and returns the factory.
Details
$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
addTypeExtension(FormTypeExtensionInterface $typeExtension)
Adds a form type extension to the factory.