cms.page.beforeRenderPage

Triggered in Cms\Classes\Controller.

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

$controller->bindEvent('page.beforeRenderPage', function ((\Cms\Classes\Page) $page) {
    return 'Custom page contents';
});