FormTypeExtensionInterface
in
Tags
Table of Contents
- buildForm() : mixed
- Builds the form.
- buildView() : mixed
- Builds the view.
- configureOptions() : mixed
- finishView() : mixed
- Finishes the view.
- getExtendedType() : string
- Returns the name of the type being extended.
Methods
buildForm()
Builds the form.
public
buildForm(FormBuilderInterface $builder, array<string|int, mixed> $options) : mixed
This method is called after the extended type has built the form to further modify it.
Parameters
- $builder : FormBuilderInterface
- $options : array<string|int, mixed>
Tags
Return values
mixed —buildView()
Builds the view.
public
buildView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
This method is called after the extended type has built the view to further modify it.
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Tags
Return values
mixed —configureOptions()
public
configureOptions(OptionsResolver $resolver) : mixed
Parameters
- $resolver : OptionsResolver
Return values
mixed —finishView()
Finishes the view.
public
finishView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
This method is called after the extended type has finished the view to further modify it.
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Tags
Return values
mixed —getExtendedType()
Returns the name of the type being extended.
public
getExtendedType() : string
Tags
Return values
string —The name of the type being extended