backend.page.beforeDisplay
Provides an opportunity to override backend page content
Example usage:
Event::listen('backend.page.beforeDisplay', function ((\Backend\Classes\Controller) $backendController, (string) $action, (array) $params) {
trace_log('redirect all backend pages to google');
return \Redirect::to('https://google.com');
});
Or
$backendController->bindEvent('page.beforeDisplay', function ((string) $action, (array) $params) {
trace_log('redirect all backend pages to google');
return \Redirect::to('https://google.com');
});
Usage
Triggers
Class or file | Line |
---|---|
Backend\Classes\Controller
|
273 |
Copyright © 2024 Winter CMS