LittleGiant\CatalogManager\Extensions\ExtensionDefinesDefaultConfig
Config settings defined by extensions that have values (either in private static variables or YAML) will override those same settings on extended classes - even if the desired behaviour is to provide a default on the extension and the extended class should override these. This trait allows that behaviour to be restored.
https://github.com/silverstripe/silverstripe-framework/issues/7970
The class using this trait should define a const called CONFIG_SETTINGS_WITH_DEFAULTS which is an array of strings.
Each string should be the name of a config setting (i.e. the name of a private static variable).
Synopsis
Hierarchy
Methods
public
- get_extra_config() — Generate extra config for a class, letting it override the concrete extension's config settings.