View helper plugin to fetch the authenticated identity.

package Default
inherited_from \Zend\View\Helper\AbstractHelper

 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\AuthenticationServiceInterface

Returns

\Zend\Authentication\AuthenticationServiceInterface

Get the view object

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

Returns

null\Zend\View\Renderer\RendererInterface

Set AuthenticationService instance

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

Parameters

$authenticationService

\Zend\Authentication\AuthenticationServiceInterface

Returns

\Zend\View\Helper\Identity

Set the View object

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

Parameters

$view

\Zend\View\Renderer\RendererInterface

Returns

\Zend\View\Helper\AbstractHelper

 Properties

 

AuthenticationService instance

$authenticationService : \Zend\Authentication\AuthenticationServiceInterface

Default

 

View object instance

$view : \Zend\View\Renderer\RendererInterface

Default

null