cms.theme.extendConfig

Extend basic theme configuration supplied by the theme by returning an array.

Note if planning on extending form fields, use the cms.theme.extendFormConfig event instead.

Example usage:

Event::listen('cms.theme.extendConfig', function ($themeCode, &$config) {
     $config['name'] = 'Winter Theme';
     $config['description'] = 'Another great theme from Winter CMS';
});

Usage

Globally

use Event;

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

Triggers

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