Providing the configuration on installation or update

Drupal provides a configuration management system, which is discussed in Chapter 9, Confiuration Management – Deploying in Drupal 8, and modules are able to provide configuration on an installation or through an update system. Modules provide the configuration through YAML files when they are first installed. Once the module is enabled, the configuration is then placed in the configuration management system. Updates can be made to the configuration, however, in code through the Drupal update system.

In this recipe, we will provide configuration YAMLs that create a new contact form and then manipulate them through a schema version change in the update system.

Getting ready

Create a new module like ...

Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.