Class

eZ\Publish\Core\MVC\Symfony\View\ViewEvents

class ViewEvents

Events constants of views.

Constants

FILTER_BUILDER_PARAMETERS

Dispatched before the ViewBuilder is called to collect the ViewBuilder parameters.

Listeners receive a FilterViewBuilderParametersEvent, that gives access to the Request object. The default listener will add all the request attributes. Extra listeners could for instance add custom builder attributes based on the request headers.

FILTER_VIEW_PARAMETERS

Dispatched before ViewParameters are injected into a View to collect the view parameters.

Receives a ViewParameterFilterEvent, that gives access to a copy of the View as well as the builder input parameters. Listeners can modify the parameters that will be injected as view parameters, and made available in controller and templates.