interface FormFactoryBuilderInterface
A builder for FormFactoryInterface objects.
$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. | |
FormFactoryInterface | getFormFactory() Builds and returns the factory. |
Sets the factory for creating ResolvedFormTypeInterface instances.
ResolvedFormTypeFactoryInterface | $resolvedTypeFactory |
$this |
Adds an extension to be loaded by the factory.
FormExtensionInterface | $extension |
$this |
Adds a list of extensions to be loaded by the factory.
array | $extensions | The extensions |
$this |
Adds a form type to the factory.
FormTypeInterface | $type |
$this |
Adds a list of form types to the factory.
array | $types | The form types |
$this |
Adds a form type extension to the factory.
FormTypeExtensionInterface | $typeExtension |
$this |
Adds a list of form type extensions to the factory.
array | $typeExtensions | The form type extensions |
$this |
Adds a type guesser to the factory.
FormTypeGuesserInterface | $typeGuesser |
$this |
Adds a list of type guessers to the factory.
array | $typeGuessers | The type guessers |
$this |
Builds and returns the factory.
FormFactoryInterface | The form factory |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/FormFactoryBuilderInterface.html