Drupal 7 To Drupal 8

Let’s port an existing theme (and subtheme) to Drupal 8. There are quite a few posts out there describing the process, but those mostly cover the creation of a theme rather than its port to D8. To help you out, I’ve gathered most of the relevant information here that helped me achieve a D8 beta version of our beloved theme at Zivtech. You can find a full version of the theme here.

Install Drupal 8

Drupal 9 is being built in Drupal 8 and is backwards compatible. Drupal 9 will be released in 2020. If you’re on Drupal 7, don’t wait until Drupal 9 to begin your upgrade. If you’re already using Drupal 8, you’re well on your way to the benefits Drupal 9. Keep Drupal 8 up to date to mitigate risks. A Drupal 7 to 8 migration can be easily performed with Drupal’s core migrate modules itself. Other contributed modules like Migration Tools will provide more flexibility while running the migrations. Core migration API is extremely powerful and we can migrate any kind of content provided by the ETL plugins.

Drupal 7 To Drupal 8 Module Migration

  • The Drupal 7's end-of-life is now postponed to November 28, 2022. However, the Drupal Security Team will continue to follow the Security Team processes for Drupal 7 core and contributed projects. Also, Drupal 8 will still have end-of-life on November 2, 2021, due to Symfony 3's end of life.
  • Whether it is an upgrade from Drupal 7 to Drupal 8 or migration from another CMS to Drupal 8, Rishabh Software can support you with all your Drupal 8 requirements. We provide a full range of Drupal web development, including design, development, integration, and maintenance.

Drupal 7 To Drupal 8 Content Migration

Nothing special here. Download the latest beta and run the install process. You are then going to create a new theme instance and then add D7 components one at a time.
Our Zivtech theme used to be an actual sub theme of Zen. However, there is no D8 release available, and the dev version is broken and unusable at the moment. While I am sure this will change, it was the trigger for us to part from Zen since our D7 was only using some of Zen’s preprocess functions that were easily integrated or left behind.

Create the Folder Structure

Drupal 7 To Drupal 8 Migration Process

Drupal

Migrate Drupal 7 To Drupal 8

First we need to take a quick look at the folder structure. In Drupal 8 our themes go into the “Themes” folder located in the root folder of your Drupal install (themes shipped with core are located in root > core > themes).
I recommend creating both a “contrib” and “custom folder,” and create a folder for your new custom D8 theme so you end up with root > themes > custom > [yourtheme].

Drupal 8 Tutorial

Create the Necessary Files

How To Upgrade From Drupal 7 To Drupal 8

No .info file anymore. They have been replaced with Twig and Yaml (.yml) files. The syntax is easy and intuitive, but make sure to check out a few examples as there are conventions to respect. For example, set indentation to spaces, not tabs; respect precise indentation, etc). Here is the one I ended up writing: