cms.page.renderPartial

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

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

Usage

Triggers

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