cms.page.renderPartial

Triggered in Cms\Classes\Controller\HasRenderers.

Provides an opportunity to manipulate the output of a partial after being rendered

Example usage:

Event::listen('cms.page.renderPartial', function ((\Cms\Classes\Controller) $controller, (string) $partialName, (string) &$partialContent) {
    return "Overriding content";
});

Or

$controller->bindEvent('page.renderPartial', function ((string) $partialName, (string) &$partialContent) {
    return "Overriding content";
});