An abstract view helper, to be implemented by view helpers that need to be ServiceLocatorAware

package HexCommon

 Methods

A helper method to access the application config more easily in view helpers.

getApplicationConfig() : array

Returns

array

Get the service locator.

getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface

Returns

\Zend\ServiceManager\ServiceLocatorInterface

Set the service locator.

setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Helper\AbstractHelper

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

The service locator to set

Returns

\Zend\View\Helper\AbstractHelper