cms.theme.setActiveTheme

Fires when the active theme has been changed.

If a value is returned from this halting event, it will be used as the active theme code. Example usage:

Event::listen('cms.theme.setActiveTheme', function ($code) {
    \Log::info("Theme has been changed to $code");
});

Usage

Globally

use Event;

Event::listen('cms.theme.setActiveTheme', function () {
    // Your event listener code goes here...
});

Triggers

Class or file Line
Cms\Classes\Theme 257
Copyright © 2024 Winter CMS