ResolvedTypeDataCollectorProxy
in package
implements
ResolvedFormTypeInterface
Proxy that invokes a data collector when creating a form and its view.
Tags
Interfaces, Classes, Traits and Enums
- ResolvedFormTypeInterface
- A wrapper for a form type and its extensions.
Table of Contents
- $dataCollector : mixed
- $proxiedType : mixed
- __construct() : mixed
- 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.
Properties
$dataCollector
private
mixed
$dataCollector
$proxiedType
private
mixed
$proxiedType
Methods
__construct()
public
__construct(ResolvedFormTypeInterface $proxiedType, FormDataCollectorInterface $dataCollector) : mixed
Parameters
- $proxiedType : ResolvedFormTypeInterface
- $dataCollector : FormDataCollectorInterface
Return values
mixed —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
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, mixed $name[, array<string|int, mixed> $options = [] ]) : FormBuilderInterface
Parameters
- $factory : FormFactoryInterface
- $name : mixed
-
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
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>