cms.page.render

Triggered in Cms\Classes\Controller\HasRenderers.

Provides an opportunity to manipulate the page's rendered contents

Example usage:

Event::listen('cms.page.render', function ((\Cms\Classes\Controller) $controller, (string) $pageContents) {
    return 'My custom contents';
});

Or

$controller->bindEvent('page.render', function ((string) $pageContents) {
    return 'My custom contents';
});