ResolvedFormTypeFactoryInterface

interface ResolvedFormTypeFactoryInterface

Creates ResolvedFormTypeInterface instances.

This interface allows you to use your custom ResolvedFormTypeInterface implementation, within which you can customize the concrete FormBuilderInterface implementations or FormView subclasses that are used by the framework.

Methods

ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null)

Resolves a form type.

Details

ResolvedFormTypeInterface createResolvedType(FormTypeInterface $type, array $typeExtensions, ResolvedFormTypeInterface $parent = null)

Resolves a form type.

Parameters

FormTypeInterface $type
array $typeExtensions
ResolvedFormTypeInterface $parent

Return Value

ResolvedFormTypeInterface

Exceptions

UnexpectedTypeException if the types parent {@link FormTypeInterface::getParent()} is not a string
InvalidArgumentException if the types parent can not be retrieved from any extension
doc_Symfony
2016-10-28 06:30:03
Comments
Leave a Comment

Please login to continue.