interface ResolvedFormTypeInterface

A wrapper for a form type and its extensions.

Methods

string
getBlockPrefix()

Returns the prefix of the template block name for this type.

getParent()

Returns the parent type.

getInnerType()

Returns the wrapped form type.

array
getTypeExtensions()

Returns the extensions of the wrapped form type.

FormBuilderInterface
createBuilder(FormFactoryInterface$factory,string$name,array$options =[])

Creates a new form builder for this type.

FormView
createView(FormInterface$form,FormView$parent =null)

Creates a new form view for a form of this type.

void
buildForm(FormBuilderInterface$builder,array$options)

Configures a form builder for the type hierarchy.

void
buildView(FormView$view,FormInterface$form,array$options)

Configures a form view for the type hierarchy.

void
finishView(FormView$view,FormInterface$form,array$options)

Finishes a form view for the type hierarchy.

OptionsResolver
getOptionsResolver()

Returns the configured options resolver used for this type.

Details

string getBlockPrefix()

Returns the prefix of the template block name for this type.

Return Value

string

ResolvedFormTypeInterface|null getParent()

Returns the parent type.

Return Value

ResolvedFormTypeInterface|null

FormTypeInterface getInnerType()

Returns the wrapped form type.

Return Value

FormTypeInterface

array getTypeExtensions()

Returns the extensions of the wrapped form type.

Return Value

array

FormBuilderInterface createBuilder(FormFactoryInterface$factory,string$name,array$options =[])

Creates a new form builder for this type.

Parameters

FormFactoryInterface $factory
string $name
array $options

Return Value

FormBuilderInterface

FormView createView(FormInterface$form,FormView$parent =null)

Creates a new form view for a form of this type.

Parameters

FormInterface $form
FormView $parent

Return Value

FormView

void buildForm(FormBuilderInterface$builder,array$options)

Configures a form builder for the type hierarchy.

Parameters

FormBuilderInterface $builder
array $options

Return Value

void

void buildView(FormView$view,FormInterface$form,array$options)

Configures a form view for the type hierarchy.

It is called before the children of the view are built.

Parameters

FormView $view
FormInterface $form
array $options

Return Value

void

void finishView(FormView$view,FormInterface$form,array$options)

Finishes a form view for the type hierarchy.

It is called after the children of the view have been built.

Parameters

FormView $view
FormInterface $form
array $options

Return Value

void

OptionsResolver getOptionsResolver()

Returns the configured options resolver used for this type.

Return Value

OptionsResolver