Class Identity

Summary

Fully Qualified Name: Laminas\View\Helper\Identity
Extends: AbstractHelper

Description

View helper plugin to fetch the authenticated identity.

Methods

Name Description Defined By
__invoke() Retrieve the current identity, if any. Identity
getAuthenticationService() Get AuthenticationService instance Identity
getView() Get the view object AbstractHelper
setAuthenticationService() Set AuthenticationService instance Identity
setView() Set the View object AbstractHelper

Method Details

__invoke()

Retrieve the current identity, if any.

If none available, returns null.

Returns: mixed|null

getAuthenticationService()

Get AuthenticationService instance

Returns: \AuthenticationServiceInterface

getView()

Get the view object

Returns: null|\Renderer

setAuthenticationService()

Set AuthenticationService instance

Parameter Name Type Description
$authenticationService \AuthenticationServiceInterface

Returns: \Identity

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top