cms.template.processSettingsAfterLoad

Fires immediately after a CMS template (page|partial|layout|content|asset) has been loaded and provides an opportunity to interact with it.

Example usage:

Event::listen('cms.template.processSettingsAfterLoad', function ((\Cms\Controllers\Index) $controller, (mixed) $templateObject) {
    // Make some modifications to the $template object
});

Or

$CmsIndexController->bindEvent('template.processSettingsAfterLoad', function ((mixed) $templateObject) {
    // Make some modifications to the $template object
});

Usage

Triggers

Class or file Line
Cms\Controllers\Index 615
Copyright © 2024 Winter CMS