cms.theme.extendFormConfig

Triggered in Cms\Classes\Theme\HasConfiguration.

Extend form field configuration supplied by the theme by returning an array.

Example usage:

Event::listen('cms.theme.extendFormConfig', function ($themeCode, &$config) {
     array_set($config, 'tabs.fields.header_color', [
         'label' => 'Header Colour',
         'type' => 'colorpicker',
         'availableColors' => [#34495e, #708598, #3498db],
         'assetVar' => 'header-bg',
         'tab' => 'Global'
     ]);
});