ResolvedFormType (Component\Form)
Symfony\Component\Form\ResolvedFormType
class ResolvedFormType implements ResolvedFormTypeInterface
A wrapper for a form type and its extensions.
Methods
__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. |
Details
public __construct(FormTypeInterface $innerType, array $typeExtensions = array(), ResolvedFormTypeInterface $parent = null)
public string getBlockPrefix()
Returns the prefix of the template block name for this type.
public ResolvedFormTypeInterface|null getParent()
Returns the parent type.
public FormTypeInterface getInnerType()
Returns the wrapped form type.
public FormTypeExtensionInterface[] getTypeExtensions()
Returns the extensions of the wrapped form type.
public FormBuilderInterface createBuilder(FormFactoryInterface $factory, string $name, array $options = array())
Creates a new form builder for this type.
public FormView createView(FormInterface $form, FormView $parent = null)
Creates a new form view for a form of this type.
public buildForm(FormBuilderInterface $builder, array $options)
Configures a form builder for the type hierarchy.
public buildView(FormView $view, FormInterface $form, array $options)
Configures a form view for the type hierarchy.
This method is called before the children of the view are built.
public finishView(FormView $view, FormInterface $form, array $options)
Finishes a form view for the type hierarchy.
This method is called after the children of the view have been built.
public OptionsResolver getOptionsResolver()
Returns the configured options resolver used for this type.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Form/ResolvedFormType.html