cms.page.beforeRenderPartial

Triggered in Cms\Classes\Controller.

Provides an oportunity to manipulate the name of the partial being rendered before it renders

Example usage:

Event::listen('cms.page.beforeRenderPartial', function ((\Cms\Classes\Controller) $controller, (string) $partialName) {
    return "path/to/overriding/location/" . $partialName;
});

Or

$CmsController->bindEvent('page.beforeRenderPartial', function ((string) $partialName) {
    return "path/to/overriding/location/" . $partialName;
});