BeforeTemplateRenderedEvent
extends Event
in package
Emitted before the rendering step of each TemplateResponse. The event holds a flag that specifies if an user is logged in.
Tags
Table of Contents
Properties
- $loggedIn : bool
- $propagationStopped : bool
- $response : TemplateResponse
Methods
- __construct() : mixed
- Compatibility constructor
- getResponse() : TemplateResponse
- isLoggedIn() : bool
- isPropagationStopped() : bool
- {@inheritDoc}
- stopPropagation() : void
- Stops the propagation of the event to further event listeners
Properties
$loggedIn
private
bool
$loggedIn
$propagationStopped
private
bool
$propagationStopped
= false
Tags
$response
private
TemplateResponse
$response
Methods
__construct()
Compatibility constructor
public
__construct(bool $loggedIn, TemplateResponse $response) : mixed
Parameters
- $loggedIn : bool
- $response : TemplateResponse
Tags
getResponse()
public
getResponse() : TemplateResponse
Tags
Return values
TemplateResponseisLoggedIn()
public
isLoggedIn() : bool
Tags
Return values
boolisPropagationStopped()
{@inheritDoc}
public
isPropagationStopped() : bool
Tags
Return values
boolstopPropagation()
Stops the propagation of the event to further event listeners
public
stopPropagation() : void