Methods

Can we create the requested service?

canCreateServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) : bool

Parameters

$name

string

Service name (as resolved by ServiceManager)

$requestedName

string

Name by which service was requested

Returns

bool

Create a form

createServiceWithName(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, string $name, string $requestedName) : \Zend\Form\Form

Parameters

$name

string

Service name (as resolved by ServiceManager)

$requestedName

string

Name by which service was requested

Returns

Get forms configuration, if any

getConfig(\Zend\ServiceManager\ServiceLocatorInterface $services) : array

Parameters

Returns

array

Retrieve the form factory, creating it if necessary

getFormFactory(\Zend\ServiceManager\ServiceLocatorInterface $services) : \Zend\Form\Factory

Marshal the input filter into the configuration

marshalInputFilter(array $config, \Zend\ServiceManager\ServiceLocatorInterface $services, \Zend\Form\Factory $formFactory) 

If an input filter is specified: - if the InputFilterManager is present, checks if it's there; if so, retrieves it and resets the specification to the instance. - otherwise, pulls the input filter factory from the form factory, and attaches the FilterManager and ValidatorManager to it.

Parameters

$config

array

$formFactory

\Zend\Form\Factory

 Properties

 

$config

$config : array

 

<p>Top-level configuration key indicating forms configuration</p>

$configKey : string

 

<p>Form factory used to create forms</p>

$factory : \Zend\Form\Factory