cms.page.postprocess
Provides opportunity to hook into the post-processing of page HTML code before being sent to the client. $dataHolder
= {content: $htmlContent}
$dataHolder
= {content: $htmlContent}Example usage:
Event::listen('cms.page.postprocess', function ((\Cms\Classes\Controller) $controller, (string) $url, (\Cms\Classes\Page) $page, (object) $dataHolder) {
return 'My custom content';
});
Or
$CmsController->bindEvent('page.postprocess', function ((string) $url, (\Cms\Classes\Page) $page, (object) $dataHolder) {
return 'My custom content';
});
Usage
Triggers
Class or file | Line |
---|---|
Cms\Classes\Controller
|
584 |
Copyright © 2024 Winter CMS