class ResolvedFormType implements ResolvedFormTypeInterface
A wrapper for a form type and its extensions.
__construct(FormTypeInterface $innerType, array $typeExtensions = array(), ResolvedFormTypeInterface $parent = null) | ||
string | getBlockPrefix() Returns the prefix of the template block name for this type. | |
ResolvedFormTypeInterface|null | getParent() Returns the parent type. | |
FormTypeInterface | getInnerType() Returns the wrapped form type. | |
FormTypeExtensionInterface[] | getTypeExtensions() Returns the extensions of the wrapped form type. | |
FormBuilderInterface | createBuilder(FormFactoryInterface $factory, string $name, array $options = array()) 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. | |
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. | ||
OptionsResolver | getOptionsResolver() Returns the configured options resolver used for this type. | |
FormBuilderInterface | newBuilder(string $name, string $dataClass, FormFactoryInterface $factory, array $options) Creates a new builder instance. | |
FormView | newView(FormView $parent = null) Creates a new view instance. |
FormTypeInterface | $innerType | |
array | $typeExtensions | |
ResolvedFormTypeInterface | $parent |
Returns the prefix of the template block name for this type.
string | The prefix of the template block name |
Returns the parent type.
ResolvedFormTypeInterface|null | The parent type or null |
Returns the wrapped form type.
FormTypeInterface | The wrapped form type |
Returns the extensions of the wrapped form type.
FormTypeExtensionInterface[] | An array of {@link FormTypeExtensionInterface} instances |
Creates a new form builder for this type.
FormFactoryInterface | $factory | The form factory |
string | $name | The name for the builder |
array | $options | The builder options |
FormBuilderInterface | The created form builder |
Creates a new form view for a form of this type.
FormInterface | $form | The form to create a view for |
FormView | $parent | The parent view or null |
FormView | The created form view |
Configures a form builder for the type hierarchy.
FormBuilderInterface | $builder | The builder to configure |
array | $options | The options used for the configuration |
Configures a form view for the type hierarchy.
This method is called before the children of the view are built.
FormView | $view | The form view to configure |
FormInterface | $form | The form corresponding to the view |
array | $options | The options used for the configuration |
Finishes a form view for the type hierarchy.
This method is called after the children of the view have been built.
FormView | $view | The form view to configure |
FormInterface | $form | The form corresponding to the view |
array | $options | The options used for the configuration |
Returns the configured options resolver used for this type.
OptionsResolver | The options resolver |
Creates a new builder instance.
Override this method if you want to customize the builder class.
string | $name | The name of the builder |
string | $dataClass | The data class |
FormFactoryInterface | $factory | The current form factory |
array | $options | The builder options |
FormBuilderInterface | The new builder instance |
Creates a new view instance.
Override this method if you want to customize the view class.
FormView | $parent | The parent view, if available |
FormView | A new view instance |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/ResolvedFormType.html