Interface

Symfony\Component\Form\FormTypeExtensionInterface

interface FormTypeExtensionInterface

Methods

buildForm(FormBuilder $builder, array $options)

Builds the form.

buildView(FormView $view, FormInterface $form)

Builds the view.

buildViewBottomUp(FormView $view, FormInterface $form)

Builds the view.

array getDefaultOptions(array $options)

Overrides the default options form the extended type.

array getAllowedOptionValues(array $options)

Returns the allowed option values for each option (if any).

string getExtendedType()

Returns the name of the type being extended

Details

at line 27
public buildForm(FormBuilder $builder, array $options)

Builds the form.

This method gets called after the extended type has built the form to further modify it.

Parameters

FormBuilder $builder The form builder
array $options The options

See also

FormTypeInterface::buildForm()

at line 40
public buildView(FormView $view, FormInterface $form)

Builds the view.

This method gets called after the extended type has built the view to further modify it.

Parameters

FormView $view The view
FormInterface $form The form

See also

FormTypeInterface::buildView()

at line 53
public buildViewBottomUp(FormView $view, FormInterface $form)

Builds the view.

This method gets called after the extended type has built the view to further modify it.

Parameters

FormView $view The view
FormInterface $form The form

See also

FormTypeInterface::buildViewBottomUp()

at line 62
public array getDefaultOptions(array $options)

Overrides the default options form the extended type.

Parameters

array $options

Return Value

array

at line 71
public array getAllowedOptionValues(array $options)

Returns the allowed option values for each option (if any).

Parameters

array $options

Return Value

array The allowed option values

at line 78
public string getExtendedType()

Returns the name of the type being extended

Return Value

string The name of the type being extended