FormFactoryBuilderInterface
in
A builder for FormFactoryInterface objects.
Tags
Table of Contents
Methods
- addExtension() : $this
- Adds an extension to be loaded by the factory.
- addExtensions() : $this
- Adds a list of extensions to be loaded by the factory.
- addType() : $this
- Adds a form type to the factory.
- addTypeExtension() : $this
- Adds a form type extension to the factory.
- addTypeExtensions() : $this
- Adds a list of form type extensions to the factory.
- addTypeGuesser() : $this
- Adds a type guesser to the factory.
- addTypeGuessers() : $this
- Adds a list of type guessers to the factory.
- addTypes() : $this
- Adds a list of form types to the factory.
- getFormFactory() : FormFactoryInterface
- Builds and returns the factory.
- setResolvedTypeFactory() : $this
- Sets the factory for creating ResolvedFormTypeInterface instances.
Methods
addExtension()
Adds an extension to be loaded by the factory.
public
addExtension(FormExtensionInterface $extension) : $this
Parameters
- $extension : FormExtensionInterface
Return values
$thisaddExtensions()
Adds a list of extensions to be loaded by the factory.
public
addExtensions(array<string|int, FormExtensionInterface> $extensions) : $this
Parameters
- $extensions : array<string|int, FormExtensionInterface>
-
The extensions
Return values
$thisaddType()
Adds a form type to the factory.
public
addType(FormTypeInterface $type) : $this
Parameters
- $type : FormTypeInterface
Return values
$thisaddTypeExtension()
Adds a form type extension to the factory.
public
addTypeExtension(FormTypeExtensionInterface $typeExtension) : $this
Parameters
- $typeExtension : FormTypeExtensionInterface
Return values
$thisaddTypeExtensions()
Adds a list of form type extensions to the factory.
public
addTypeExtensions(array<string|int, FormTypeExtensionInterface> $typeExtensions) : $this
Parameters
- $typeExtensions : array<string|int, FormTypeExtensionInterface>
-
The form type extensions
Return values
$thisaddTypeGuesser()
Adds a type guesser to the factory.
public
addTypeGuesser(FormTypeGuesserInterface $typeGuesser) : $this
Parameters
- $typeGuesser : FormTypeGuesserInterface
Return values
$thisaddTypeGuessers()
Adds a list of type guessers to the factory.
public
addTypeGuessers(array<string|int, FormTypeGuesserInterface> $typeGuessers) : $this
Parameters
- $typeGuessers : array<string|int, FormTypeGuesserInterface>
-
The type guessers
Return values
$thisaddTypes()
Adds a list of form types to the factory.
public
addTypes(array<string|int, FormTypeInterface> $types) : $this
Parameters
- $types : array<string|int, FormTypeInterface>
-
The form types
Return values
$thisgetFormFactory()
Builds and returns the factory.
public
getFormFactory() : FormFactoryInterface
Return values
FormFactoryInterfacesetResolvedTypeFactory()
Sets the factory for creating ResolvedFormTypeInterface instances.
public
setResolvedTypeFactory(ResolvedFormTypeFactoryInterface $resolvedTypeFactory) : $this
Parameters
- $resolvedTypeFactory : ResolvedFormTypeFactoryInterface