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

package HexCommon

 Methods

__invoke()

__invoke() 

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

getApplicationConfig() : array
Inherited
inherited_from \HexCommon\View\Helper\ServiceLocatorAwareHelper::getApplicationConfig()

Returns

array

getGaAccount()

getGaAccount() 

Get the service locator.

getServiceLocator() : \Zend\ServiceManager\ServiceLocatorInterface
Inherited
inherited_from \HexCommon\View\Helper\ServiceLocatorAwareHelper::getServiceLocator()

Returns

\Zend\ServiceManager\ServiceLocatorInterface

isGoogleAnalyticsEnabled()

isGoogleAnalyticsEnabled() 

setGaAccount()

setGaAccount($gaAccount) 

Parameters

$gaAccount

Set the service locator.

setServiceLocator(\Zend\ServiceManager\ServiceLocatorInterface $serviceLocator) : \Zend\View\Helper\AbstractHelper
Inherited
inherited_from \HexCommon\View\Helper\ServiceLocatorAwareHelper::setServiceLocator()

Parameters

$serviceLocator

\Zend\ServiceManager\ServiceLocatorInterface

The service locator to set

Returns

\Zend\View\Helper\AbstractHelper