cms.page.render
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
$CmsController->bindEvent('page.render', function ((string) $pageContents) {
return 'My custom contents';
});
Usage
Triggers
Class or file | Line |
---|---|
Cms\Classes\Controller
|
905 |
Copyright © 2024 Winter CMS