This event occurs when a view should rendered.

 Methods

Create a new instance.

__construct(\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface $environment, \ContaoCommunityAlliance\DcGeneral\Action $action, string $viewName, array $context) 

Parameters

$environment

\ContaoCommunityAlliance\DcGeneral\EnvironmentInterface

The environment in use.

$viewName

string

The view name.

$context

array

The context attributes.

Returns the view context attributes.

getContext() : array

Returns

array

Return the action response.

getResponse() : string

Returns

string

Returns the view name.

getViewName() : string

Returns

string

Set the view context attributes.

setContext(array $context) : static

Parameters

$context

array

The context attributes.

Returns

static

Set the action response.

setResponse(string $response) : \ContaoCommunityAlliance\DcGeneral\Event\ActionEvent

Parameters

$response

string

The response.

Returns

 Properties

 

The view context attributes.

$context : array
 

The action response, if any is set.

$response : string
 

The view name.

$viewName : string