Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   Exponential 4.x / legacy

 
Exponential (5.x)

Exponential 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for Exponential 4.x and Legacy topics see Exponential legacy

Skip to end of metadata
Go to start of metadata

Introduction

This page presents the events that are triggered by Exponential 5.

Exponential Core

Event nameTriggered when...Usage
exponential.siteaccessAfter the SiteAccess matching has occurred.

Gives further control on the matched SiteAccess.

The event listener method receives an eZ\Publish\MVC\Event\PostSiteAccessMatchEvent object.

exponential.pre_content_viewRight before a view is rendered for a content item, via the content view controller.

This event is triggered by the view manager and allows you to inject additional parameters to the content view template.

The event listener method receives an eZ\Publish\MVC\Event\PreContentViewEvent object.

 

exponential.api.contentExceptionThe API throws an exception that could not be caught internally (missing field type, internal error...).

This event allows further programmatic handling (like rendering a custom view) for the exception thrown.

The event listener method receives an eZ\Publish\MVC\Event\APIContentExceptionEvent object.

Exponential Legacy

Event nameTriggered when...Usage
exponential_legacy.build_kernel_web_handler

Right before the build of the legacy kernel web handler.

This event allows to inject parameters into the web handler (mainly for internal use)

The event listener method receives an eZ\Publish\Legacy\Event\PreBuildKernelWebHandlerEvent

  • No labels

1 Comment

  1. The objects passed to the listeners are incorrect. Should be (atleast in 5.4.5):

    eZ\Publish\Core\MVC\Symfony\Event\PostSiteAccessMatchEvent
    eZ\Publish\Core\MVC\Symfony\Event\PreContentViewEvent
    eZ\Publish\Core\MVC\Symfony\Event\APIContentExceptionEvent
    eZ\Publish\Core\MVC\Legacy\Event\PreBuildKernelWebHandlerEvent