abstract class AbstractType implements FormTypeInterface
Methods
|
buildForm(FormBuilder $builder, array $options)
Builds the form. |
||
|
buildView(FormView $view, FormInterface $form)
Builds the form view. |
||
|
buildViewBottomUp(FormView $view, FormInterface $form)
Builds the form view. |
||
| FormBuilder|null |
createBuilder(string $name, FormFactoryInterface $factory, array $options)
Returns a builder for the current type. |
|
| array |
getDefaultOptions(array $options)
Returns the default options for this type. |
|
| array |
getAllowedOptionValues(array $options)
Returns the allowed option values for each option (if any). |
|
| string|null |
getParent(array $options)
Returns the name of the parent type. |
|
|
setExtensions(array $extensions)
Adds extensions for this type. |
||
| array |
getExtensions()
Returns the extensions associated with this type. |
Details
at line 36
public
buildForm(FormBuilder $builder, array $options)
Builds the form.
This method gets called for each type in the hierarchy starting form the
top most type.
Type extensions can further modify the form.
at line 52
public
buildView(FormView $view, FormInterface $form)
Builds the form view.
This method gets called for each type in the hierarchy starting form the
top most type.
Type extensions can further modify the view.
at line 71
public
buildViewBottomUp(FormView $view, FormInterface $form)
Builds the form view.
This method gets called for each type in the hierarchy starting form the
top most type.
Type extensions can further modify the view.
Children views have been built when this method gets called so you get
a chance to modify them.
at line 87
public FormBuilder|null
createBuilder(string $name, FormFactoryInterface $factory, array $options)
Returns a builder for the current type.
The builder is retrieved by going up in the type hierarchy when a type does
not provide one.
at line 99
public array
getDefaultOptions(array $options)
Returns the default options for this type.
at line 111
public array
getAllowedOptionValues(array $options)
Returns the allowed option values for each option (if any).
at line 123
public string|null
getParent(array $options)
Returns the name of the parent type.
at line 135
public
setExtensions(array $extensions)
Adds extensions for this type.
at line 151
public array
getExtensions()
Returns the extensions associated with this type.