Constructed factory to set pages during construction.

 Methods

__construct()

__construct(string | \Zend\Config\Config | array $config) 

Parameters

$config

string\Zend\Config\Configarray

Create service

createService(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\Navigation\Navigation
Inherited

inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::createService()

Parameters

Returns

getName()

getName() : string

Returns

string

getPages()

getPages(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : array | null | \Zend\Config\Config

getPagesFromConfig()

getPagesFromConfig(string | \Zend\Config\Config | array $config) : array | null | \Zend\Config\Config
Inherited

inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::getPagesFromConfig()

Parameters

$config

string\Zend\Config\Configarray

Exceptions

\Zend\Navigation\Exception\InvalidArgumentException

Returns

injectComponents()

injectComponents(array $pages, \Zend\Mvc\Router\RouteMatch $routeMatch, \Zend\Mvc\Router\RouteStackInterface $router, null | \Zend\Http\Request $request) : array
Inherited

inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::injectComponents()

Parameters

$pages

array

$request

null\Zend\Http\Request

Returns

array

preparePages()

preparePages(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator, array | \Zend\Config\Config $pages) : null | array
Inherited

inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::preparePages()

Parameters

$pages

array\Zend\Config\Config

Exceptions

\Zend\Navigation\Exception\InvalidArgumentException

Returns

nullarray

 Properties

 

$config

$config : string | \Zend\Config\Config | array

 

$pages

$pages : array
Inherited

inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::$$pages