diff --git a/modules/backend/classes/Controller.php b/modules/backend/classes/Controller.php index 6e4d3e8cf..76255fa00 100644 --- a/modules/backend/classes/Controller.php +++ b/modules/backend/classes/Controller.php @@ -157,6 +157,16 @@ class Controller extends Extendable $this->action = $action; $this->params = $params; + /* + * Extensibility + */ + if ( + ($event = $this->fireEvent('page.beforeDisplay', [$action, $params], true)) || + ($event = Event::fire('backend.page.beforeDisplay', [$this, $action, $params], true)) + ) { + return $event; + } + /* * Determine if this request is a public action. */