PreloadedExtension
class PreloadedExtension implements FormExtensionInterface
A form extension with preloaded types, type exceptions and type guessers.
Methods
__construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null)
Creates a new preloaded extension.
getType(string $name)
Returns a type by name.
bool
hasType(string $name)
Returns whether the given type is supported.
getTypeExtensions(string $name)
Returns the extensions for the given type.
bool
hasTypeExtensions(string $name)
Returns whether this extension provides type extensions for the given type.
getTypeGuesser()
Returns the type guesser provided by this extension.
Details
at line line 45
__construct(array $types, array $typeExtensions, FormTypeGuesserInterface $typeGuesser = null)
Creates a new preloaded extension.
at line line 58
FormTypeInterface
getType(string $name)
Returns a type by name.
at line line 70
bool
hasType(string $name)
Returns whether the given type is supported.
at line line 78
FormTypeExtensionInterface[]
getTypeExtensions(string $name)
Returns the extensions for the given type.
at line line 88
bool
hasTypeExtensions(string $name)
Returns whether this extension provides type extensions for the given type.
at line line 96
FormTypeGuesserInterface|null
getTypeGuesser()
Returns the type guesser provided by this extension.