FormFactoryBuilder::addTypeExtensions()

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.

FormFactoryBuilder::addTypeExtension()

FormFactoryBuilderInterface addTypeExtension(FormTypeExtensionInterface $typeExtension) Adds a form type extension to the factory. Parameters FormTypeExtensionInterface $typeExtension The form type extension. Return Value FormFactoryBuilderInterface The builder.

FormFactoryBuilder::addType()

FormFactoryBuilderInterface addType(FormTypeInterface $type) Adds a form type to the factory. Parameters FormTypeInterface $type The form type. Return Value FormFactoryBuilderInterface The builder.

FormFactoryBuilder::addExtensions()

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.

FormFactoryBuilder::addExtension()

FormFactoryBuilderInterface addExtension(FormExtensionInterface $extension) Adds an extension to be loaded by the factory. Parameters FormExtensionInterface $extension The extension. Return Value FormFactoryBuilderInterface The builder.

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 $extens

FormFactory::createNamedBuilder()

FormBuilderInterface createNamedBuilder(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form builder. Parameters string|int $name The name of the form string $type The type of the form mixed $data The initial data array $options The options Return Value FormBuilderInterface The form builder Exceptions InvalidOptionsException if any given option is not applicable to the given t

FormFactory::createNamed()

FormInterface createNamed(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form. Parameters string|int $name The name of the form string $type The type of the form mixed $data The initial data array $options The options Return Value FormInterface The form Exceptions InvalidOptionsException if any given option is not applicable to the given type

FormFactory::createForProperty()

FormInterface createForProperty(string $class, string $property, mixed $data = null, array $options = array()) Returns a form for a property of a class. Parameters string $class The fully qualified class name string $property The name of the property to guess for mixed $data The initial data array $options The options for the builder Return Value FormInterface The form named after the property Exceptions InvalidOptionsException if any given option is not applicable to the form

FormFactory::createBuilderForProperty()

FormBuilderInterface createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = array()) Returns a form builder for a property of a class. If any of the 'required' and type options can be guessed, and are not provided in the options argument, the guessed value is used. Parameters string $class The fully qualified class name string $property The name of the property to guess for mixed $data The initial data array $options The options for the