class ResolvedTypeDataCollectorProxy implements ResolvedFormTypeInterface

Proxy that invokes a data collector when creating a form and its view.

Methods

__construct(ResolvedFormTypeInterface $proxiedType, FormDataCollectorInterface $dataCollector)

No description

string
getName()

Returns the name of the type.

getBlockPrefix()

{@inheritdoc}

getParent()

Returns the parent type.

getInnerType()

Returns the wrapped form type.

getTypeExtensions()

Returns the extensions of the wrapped form type.

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

Creates a new form builder for this type.

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

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

buildForm(FormBuilderInterface $builder, array $options)

Configures a form builder for the type hierarchy.

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

Configures a form view for the type hierarchy.

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

Finishes a form view for the type hierarchy.

getOptionsResolver()

Returns the configured options resolver used for this type.

Details

at line 31
__construct(ResolvedFormTypeInterface $proxiedType, FormDataCollectorInterface $dataCollector)

Parameters

ResolvedFormTypeInterface $proxiedType
FormDataCollectorInterface $dataCollector

at line 40
string getName()

Returns the name of the type.

Return Value

string The type name

at line 48
getBlockPrefix()

{@inheritdoc}

at line 56
ResolvedFormTypeInterface|null getParent()

Returns the parent type.

Return Value

ResolvedFormTypeInterface|null The parent type or null

at line 64
FormTypeInterface getInnerType()

Returns the wrapped form type.

Return Value

FormTypeInterface The wrapped form type

at line 72
FormTypeExtensionInterface[] getTypeExtensions()

Returns the extensions of the wrapped form type.

Return Value

FormTypeExtensionInterface[] An array of {@link FormTypeExtensionInterface} instances

at line 80
FormBuilderInterface createBuilder(FormFactoryInterface $factory, string $name, array $options = array())

Creates a new form builder for this type.

Parameters

FormFactoryInterface $factory The form factory
string $name The name for the builder
array $options The builder options

Return Value

FormBuilderInterface The created form builder

at line 93
FormView createView(FormInterface $form, FormView $parent = null)

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

Parameters

FormInterface $form The form to create a view for
FormView $parent The parent view or null

Return Value

FormView The created form view

at line 101
buildForm(FormBuilderInterface $builder, array $options)

Configures a form builder for the type hierarchy.

Parameters

FormBuilderInterface $builder The builder to configure
array $options The options used for the configuration

at line 109
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 The form view to configure
FormInterface $form The form corresponding to the view
array $options The options used for the configuration

at line 117
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 The form view to configure
FormInterface $form The form corresponding to the view
array $options The options used for the configuration

at line 144
OptionsResolverInterface getOptionsResolver()

Returns the configured options resolver used for this type.

Return Value

OptionsResolverInterface The options resolver