cms.page.beforeRenderContent

Triggered in Cms\Classes\Controller.

Provides an oportunity to manipulate the name of the content file being rendered before it renders

Example usage:

Event::listen('cms.page.beforeRenderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName) {
    return "path/to/overriding/location/" . $contentName;
});

Or

$CmsController->bindEvent('page.beforeRenderContent', function ((string) $contentName) {
    return "path/to/overriding/location/" . $contentName;
});