FormFactory
class FormFactory implements FormFactoryInterface
Methods
__construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
No description
create(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form.
createNamed(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form.
createForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form for a property of a class.
createBuilder(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form builder.
createNamedBuilder(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form builder.
createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form builder for a property of a class.
Details
at line line 28
__construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
at line line 37
FormInterface
create(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form.
at line line 45
FormInterface
createNamed(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form.
at line line 53
FormInterface
createForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form for a property of a class.
at line line 61
FormBuilderInterface
createBuilder(string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form builder.
at line line 73
FormBuilderInterface
createNamedBuilder(string|int $name, string $type = 'Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType', mixed $data = null, array $options = array())
Returns a form builder.
at line line 97
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.