cms.page.render

Triggered in Cms\Classes\Controller.

Provides an oportunity 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

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