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, ...
Get Drupal 8 Configuration Management 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.