cms.page.renderContent

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

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

Usage

Triggers

Class or file Line
Cms\Classes\Controller 1187
Copyright © 2024 Winter CMS