Constructed factory to set pages during construction.

package Default
inherited_from \Zend\Navigation\Service\AbstractNavigationFactory

 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\ServiceManager\FactoryInterface::createService()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

Returns

\Zend\Navigation\Navigation

getName()

getName() : string
inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::getName()

Returns

string

getPages()

getPages(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : array | null | \Zend\Config\Config
inherited_from \Zend\Navigation\Service\AbstractNavigationFactory::getPages()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

Returns

arraynull\Zend\Config\Config

getName()

getName() : string
Inherited
abstract

Returns

string

getPages()

getPages(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : array
Inherited

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

Exceptions

\Zend\Navigation\Exception\InvalidArgumentException

Returns

array

getPagesFromConfig()

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

Parameters

$config

string\Zend\Config\Configarray

Exceptions

\Zend\Navigation\Exception\InvalidArgumentException

Returns

arraynull\Zend\Config\Config

injectComponents()

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

Parameters

$pages

array

$routeMatch

\Zend\Mvc\Router\RouteMatch

$router

\Zend\Mvc\Router\RouteStackInterface

$request

null\Zend\Http\Request

Returns

array

preparePages()

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

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

$pages

array\Zend\Config\Config

Exceptions

\Zend\Navigation\Exception\InvalidArgumentException

Returns

nullarray

 Properties

 

$config

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

Default

 

$pages

$pages : array

Default