O'Reilly logo

Drupal 8 Configuration Management by Stefan Borchert, Anja Schirwinski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 7. Upgrading Your Drupal 7 Variables to the Drupal 8 Configuration

In the previous chapters, we prepared you to add configuration data and schema files to your Drupal 8 modules. But what about all the old modules written for Drupal 7? How do you convert the variables introduced there to new configuration objects? And how can we convert the old setting forms to the forms used by the Configuration System in Drupal 8?

This chapter will show you some ways to convert your Drupal 7 variables to the Drupal 8 Configuration objects and how to provide an upgrade path in your modules.

Upgrading your variables

When upgrading your variables from Drupal 7 to Drupal 8, you first need to identify whether the variables are a simple configuration (for example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required