ResolvedFormTypeInterface
in
A wrapper for a form type and its extensions.
Tags
Table of Contents
- buildForm() : mixed
- Configures a form builder for the type hierarchy.
- buildView() : mixed
- Configures a form view for the type hierarchy.
- createBuilder() : FormBuilderInterface
- Creates a new form builder for this type.
- createView() : FormView
- Creates a new form view for a form of this type.
- finishView() : mixed
- Finishes a form view for the type hierarchy.
- getBlockPrefix() : string
- Returns the prefix of the template block name for this type.
- getInnerType() : FormTypeInterface
- Returns the wrapped form type.
- getOptionsResolver() : OptionsResolver
- Returns the configured options resolver used for this type.
- getParent() : self|null
- Returns the parent type.
- getTypeExtensions() : array<string|int, FormTypeExtensionInterface>
- Returns the extensions of the wrapped form type.
Methods
buildForm()
Configures a form builder for the type hierarchy.
public
buildForm(FormBuilderInterface $builder, array<string|int, mixed> $options) : mixed
Parameters
- $builder : FormBuilderInterface
- $options : array<string|int, mixed>
Return values
mixed —buildView()
Configures a form view for the type hierarchy.
public
buildView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
It is called before the children of the view are built.
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Return values
mixed —createBuilder()
Creates a new form builder for this type.
public
createBuilder(FormFactoryInterface $factory, string $name[, array<string|int, mixed> $options = [] ]) : FormBuilderInterface
Parameters
- $factory : FormFactoryInterface
- $name : string
-
The name for the builder
- $options : array<string|int, mixed> = []
Return values
FormBuilderInterface —The created form builder
createView()
Creates a new form view for a form of this type.
public
createView(FormInterface $form[, FormView $parent = null ]) : FormView
Parameters
- $form : FormInterface
- $parent : FormView = null
Return values
FormView —The created form view
finishView()
Finishes a form view for the type hierarchy.
public
finishView(FormView $view, FormInterface $form, array<string|int, mixed> $options) : mixed
It is called after the children of the view have been built.
Parameters
- $view : FormView
- $form : FormInterface
- $options : array<string|int, mixed>
Return values
mixed —getBlockPrefix()
Returns the prefix of the template block name for this type.
public
getBlockPrefix() : string
Return values
string —The prefix of the template block name
getInnerType()
Returns the wrapped form type.
public
getInnerType() : FormTypeInterface
Return values
FormTypeInterface —The wrapped form type
getOptionsResolver()
Returns the configured options resolver used for this type.
public
getOptionsResolver() : OptionsResolver
Return values
OptionsResolver —The options resolver
getParent()
Returns the parent type.
public
getParent() : self|null
Return values
self|null —The parent type or null
getTypeExtensions()
Returns the extensions of the wrapped form type.
public
getTypeExtensions() : array<string|int, FormTypeExtensionInterface>