cms.page.postprocess

Triggered in Cms\Classes\Controller.

Provides oportunity to hook into the post processing of page HTML code before being sent to the client. $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';
});