View helper plugin to fetch the authenticated identity.

 Methods

Retrieve the current identity, if any.

__invoke() : mixed | null

If none available, returns null.

Exceptions

\Zend\View\Exception\RuntimeException

Returns

mixednull

getAuthenticationService()

getAuthenticationService() : \Zend\Authentication\AuthenticationService

Get the view object

getView() : null | \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::getView()

Returns

setAuthenticationService()

setAuthenticationService(\Zend\Authentication\AuthenticationService $authenticationService) 

Parameters

Set the View object

setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::setView()

Parameters

Returns

 Properties

 

$authenticationService

$authenticationService : \Zend\Authentication\AuthenticationService

 

View object

$view : \Zend\View\Renderer\RendererInterface
Inherited

inherited_from \Zend\View\Helper\AbstractHelper::$$view