interface FormRegistryInterface

The central registry of the Form component.

Methods

getType(string$name)

Returns a form type by name.

bool
hasType(string$name)

Returns whether the given form type is supported.

FormTypeGuesserInterface|null
getTypeGuesser()

Returns the guesser responsible for guessing types.

array
getExtensions()

Returns the extensions loaded by the framework.

Details

ResolvedFormTypeInterface getType(string$name)

Returns a form type by name.

This methods registers the type extensions from the form extensions.

Parameters

string $name

Return Value

ResolvedFormTypeInterface

Exceptions

InvalidArgumentException if the type cannot be retrieved from any extension

bool hasType(string$name)

Returns whether the given form type is supported.

Parameters

string $name

Return Value

bool

FormTypeGuesserInterface|null getTypeGuesser()

Returns the guesser responsible for guessing types.

Return Value

FormTypeGuesserInterface|null

array getExtensions()

Returns the extensions loaded by the framework.

Return Value

array