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

Get AuthenticationService instance

getAuthenticationService() : \Zend\Authentication\AuthenticationService

Get the view object

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

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

Returns

Set AuthenticationService instance

setAuthenticationService(\Zend\Authentication\AuthenticationService $authenticationService) : \Zend\View\Helper\Identity

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 instance

$authenticationService : \Zend\Authentication\AuthenticationService

 

View object instance

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

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