class FormFactory implements FormFactoryInterface
Methods
|
__construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
|
||
| FormInterface |
create(string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form. |
|
| FormInterface |
createNamed(string|integer $name, string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form. |
|
| FormInterface |
createForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form for a property of a class. |
|
| FormBuilderInterface |
createBuilder(string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form builder. |
|
| FormBuilderInterface |
createNamedBuilder(string|integer $name, string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form builder. |
|
| FormBuilderInterface |
createBuilderForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form builder for a property of a class. |
Details
at line 28
public
__construct(FormRegistryInterface $registry, ResolvedFormTypeFactoryInterface $resolvedTypeFactory)
at line 37
public FormInterface
create(string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form.
at line 45
public FormInterface
createNamed(string|integer $name, string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form.
at line 53
public FormInterface
createForProperty(string $class, string $property, mixed $data = null, array $options = array())
Returns a form for a property of a class.
at line 61
public FormBuilderInterface
createBuilder(string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form builder.
at line 73
public FormBuilderInterface
createNamedBuilder(string|integer $name, string|FormTypeInterface $type = 'form', mixed $data = null, array $options = array())
Returns a form builder.
at line 93
public 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 'max_length', 'required' and type options can be guessed, and are not provided in the options argument, the guessed value is used.