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::addTypes()

FormFactoryBuilderInterface addTypes(array $types) Adds a list of form types to the factory. Parameters array $types The form types. 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

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.

FormFactory::create()

FormInterface create(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form. Parameters string $type The type of the form mixed $data The initial data array $options The options Return Value FormInterface The form named after the type 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

FormFactory::createBuilder()

FormBuilderInterface createBuilder(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array()) Returns a form builder. Parameters 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 type