Class

Symfony\Component\Form\AbstractTypeExtension

abstract class AbstractTypeExtension implements 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).

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 42
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 57
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 68
public array getDefaultOptions(array $options)

Overrides the default options form the extended type.

Parameters

array $options

Return Value

array

at line 80
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