cms.page.renderContent

Triggered in Cms\Classes\Controller\HasRenderers.

Provides an opportunity to manipulate the output of a content file after being rendered

Example usage:

Event::listen('cms.page.renderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName, (string) &$fileContent) {
    return "Overriding content";
});

Or

$controller->bindEvent('page.renderContent', function ((string) $contentName, (string) &$fileContent) {
    return "Overriding content";
});