class FormType extends BaseType
Methods
|
buildForm(FormBuilderInterface $builder, array $options)
Builds the form. |
||
|
buildView(FormView $view, FormInterface $form, array $options)
Builds the form view. |
||
|
setDefaultOptions(OptionsResolverInterface $resolver)
Sets the default options for this type. |
||
| __construct(PropertyAccessorInterface $propertyAccessor = null) | ||
|
finishView(FormView $view, FormInterface $form, array $options)
{@inheritdoc} |
||
|
getParent()
{@inheritdoc} |
||
|
getName()
{@inheritdoc} |
Details
at line 40
public
buildForm(FormBuilderInterface $builder, array $options)
Builds the form.
This method is called for each type in the hierarchy starting form the
top most type. Type extensions can further modify the form.
at line 69
public
buildView(FormView $view, FormInterface $form, array $options)
Builds the form view.
This method is called for each type in the hierarchy starting form the
top most type. Type extensions can further modify the view.
A view of a form is built before the views of the child forms are built.
This means that you cannot access child views in this method. If you need
to do so, move your logic to {@link finishView()} instead.
at line 124
public
setDefaultOptions(OptionsResolverInterface $resolver)
Sets the default options for this type.
at line 32
public
__construct(PropertyAccessorInterface $propertyAccessor = null)
at line 107
public
finishView(FormView $view, FormInterface $form, array $options)
{@inheritdoc}
at line 203
public
getParent()
{@inheritdoc}
at line 211
public
getName()
{@inheritdoc}