AbstractExtension
in package
implements
FormExtensionInterface
AbstractYes
Tags
Table of Contents
Interfaces
- FormExtensionInterface
- Interface for extensions which provide types, type extensions and a guesser.
Properties
- $typeExtensions : array<string|int, array<string|int, FormTypeExtensionInterface>>
- The type extensions provided by this extension.
- $typeGuesser : mixed
- The type guesser provided by this extension.
- $typeGuesserLoaded : bool
- Whether the type guesser has been loaded.
- $types : array<string|int, FormTypeInterface>
- The types provided by this extension.
Methods
- getType() : FormTypeInterface
- Returns a type by name.
- getTypeExtensions() : array<string|int, FormTypeExtensionInterface>
- Returns the extensions for the given type.
- getTypeGuesser() : FormTypeGuesserInterface|null
- Returns the type guesser provided by this extension.
- hasType() : bool
- Returns whether the given type is supported.
- hasTypeExtensions() : bool
- Returns whether this extension provides type extensions for the given type.
- loadTypeExtensions() : array<string|int, FormTypeExtensionInterface>
- Registers the type extensions.
- loadTypeGuesser() : FormTypeGuesserInterface|null
- Registers the type guesser.
- loadTypes() : array<string|int, FormTypeInterface>
- Registers the types.
- initTypeExtensions() : mixed
- Initializes the type extensions.
- initTypeGuesser() : mixed
- Initializes the type guesser.
- initTypes() : mixed
- Initializes the types.
Properties
$typeExtensions
The type extensions provided by this extension.
private
array<string|int, array<string|int, FormTypeExtensionInterface>>
$typeExtensions
$typeGuesser
The type guesser provided by this extension.
private
mixed
$typeGuesser
= null
$typeGuesserLoaded
Whether the type guesser has been loaded.
private
bool
$typeGuesserLoaded
= false
$types
The types provided by this extension.
private
array<string|int, FormTypeInterface>
$types
Methods
getType()
Returns a type by name.
public
getType(string $name) : FormTypeInterface
Parameters
- $name : string
-
The name of the type
Return values
FormTypeInterfacegetTypeExtensions()
Returns the extensions for the given type.
public
getTypeExtensions(string $name) : array<string|int, FormTypeExtensionInterface>
Parameters
- $name : string
-
The name of the type
Return values
array<string|int, FormTypeExtensionInterface>getTypeGuesser()
Returns the type guesser provided by this extension.
public
getTypeGuesser() : FormTypeGuesserInterface|null
Return values
FormTypeGuesserInterface|nullhasType()
Returns whether the given type is supported.
public
hasType(string $name) : bool
Parameters
- $name : string
-
The name of the type
Return values
boolhasTypeExtensions()
Returns whether this extension provides type extensions for the given type.
public
hasTypeExtensions(string $name) : bool
Parameters
- $name : string
-
The name of the type
Return values
boolloadTypeExtensions()
Registers the type extensions.
protected
loadTypeExtensions() : array<string|int, FormTypeExtensionInterface>
Return values
array<string|int, FormTypeExtensionInterface>loadTypeGuesser()
Registers the type guesser.
protected
loadTypeGuesser() : FormTypeGuesserInterface|null
Return values
FormTypeGuesserInterface|nullloadTypes()
Registers the types.
protected
loadTypes() : array<string|int, FormTypeInterface>
Return values
array<string|int, FormTypeInterface>initTypeExtensions()
Initializes the type extensions.
private
initTypeExtensions() : mixed
Tags
initTypeGuesser()
Initializes the type guesser.
private
initTypeGuesser() : mixed
Tags
initTypes()
Initializes the types.
private
initTypes() : mixed