FormFactoryBuilder
class FormFactoryBuilder implements FormFactoryBuilderInterface
The default implementation of FormFactoryBuilderInterface.
Methods
FormFactoryBuilderInterface | setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory) Sets the factory for creating ResolvedFormTypeInterface instances. | |
FormFactoryBuilderInterface | addExtension(FormExtensionInterface $extension) Adds an extension to be loaded by the factory. | |
FormFactoryBuilderInterface | addExtensions(array $extensions) Adds a list of extensions to be loaded by the factory. | |
FormFactoryBuilderInterface | addType(FormTypeInterface $type) Adds a form type to the factory. | |
FormFactoryBuilderInterface | addTypes(array $types) Adds a list of form types to the factory. | |
FormFactoryBuilderInterface | addTypeExtension(FormTypeExtensionInterface $typeExtension) Adds a form type extension to the factory. | |
FormFactoryBuilderInterface | addTypeExtensions(array $typeExtensions) Adds a list of form type extensions to the factory. | |
FormFactoryBuilderInterface | addTypeGuesser(FormTypeGuesserInterface $typeGuesser) Adds a type guesser to the factory. | |
FormFactoryBuilderInterface | addTypeGuessers(array $typeGuessers) Adds a list of type guessers to the factory. | |
FormFactoryInterface | getFormFactory() Builds and returns the factory. |
Details
FormFactoryBuilderInterface setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
Sets the factory for creating ResolvedFormTypeInterface instances.
Parameters
ResolvedFormTypeFactoryInterface | $resolvedTypeFactory |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addExtension(FormExtensionInterface $extension)
Adds an extension to be loaded by the factory.
Parameters
FormExtensionInterface | $extension | The extension. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addExtensions(array $extensions)
Adds a list of extensions to be loaded by the factory.
Parameters
array | $extensions | The extensions. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addType(FormTypeInterface $type)
Adds a form type to the factory.
Parameters
FormTypeInterface | $type | The form type. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addTypes(array $types)
Adds a list of form types to the factory.
Parameters
array | $types | The form types. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addTypeExtension(FormTypeExtensionInterface $typeExtension)
Adds a form type extension to the factory.
Parameters
FormTypeExtensionInterface | $typeExtension | The form type extension. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addTypeExtensions(array $typeExtensions)
Adds a list of form type extensions to the factory.
Parameters
array | $typeExtensions | The form type extensions. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addTypeGuesser(FormTypeGuesserInterface $typeGuesser)
Adds a type guesser to the factory.
Parameters
FormTypeGuesserInterface | $typeGuesser | The type guesser. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryBuilderInterface addTypeGuessers(array $typeGuessers)
Adds a list of type guessers to the factory.
Parameters
array | $typeGuessers | The type guessers. |
Return Value
FormFactoryBuilderInterface | The builder. |
FormFactoryInterface getFormFactory()
Builds and returns the factory.
Return Value
FormFactoryInterface | The form factory. |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Form/FormFactoryBuilder.html