cms.theme.getActiveTheme

Overrides the active theme code.

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

Event::listen('cms.theme.getActiveTheme', function () {
    return 'mytheme';
});

Usage

Globally

use Event;

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

Triggers

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