cms.page.beforeRenderPage
Fires after AJAX handlers are dealt with and provides an opportunity to modify the page contents
Example usage:
Event::listen('cms.page.beforeRenderPage', function ((\Cms\Classes\Controller) $controller, (\Cms\Classes\Page) $page) {
return 'Custom page contents';
});
Or
$CmsController->bindEvent('page.beforeRenderPage', function ((\Cms\Classes\Page) $page) {
return 'Custom page contents';
});
Usage
Triggers
Class or file | Line |
---|---|
Cms\Classes\Controller
|
427 |
Copyright © 2024 Winter CMS