-
Book Overview & Buying
-
Table Of Contents
Drupal 8 Development Cookbook - Second Edition
By :
Modules in Drupal 8 provide configuration YAML files inside their config/install directory. A consequence of the site controlling configuration is that a new configuration in a module's config/install directory is not automatically installed. Module developers must write update functions, which will import the new configuration as it is added. While this is a practice contributed modules should follow, this process can be cumbersome for private projects.
Luckily, the Drupal community has come up with a solution that provides a configuration management flow that allows updating of a module's provided default configuration. The module Configuration Update Manager allows you to import a new configuration from a module or revert it to the original configuration if modified. In fact, the module is a dependency for the Features module discussed in Chapter 4, Extending Drupal.
In this recipe, we will use Configuration Update Manager to review configuration...
Change the font size
Change margin width
Change background colour