| Drupal

Check Modules and Themes for Move to Drupal 9

We all know that Drupal 9 is here, but is your site ready?

In this video, I'm going to share with you 3 ways to check to see if your modules and themes are ready to move to Drupal 9.

Alright, let's go.

"Welcome to OSTips from OSTraining. My name is Rod Martin.

The simplest way to check modules and themes is to:

  • go to drupal.org/project/"the name of your module"
  • scroll down to the bottom
  • check for requirements that are:  ^Drupal 8.8  || ^Drupal 9.0

That indicates that this particular project is ready for Drupal 9.  And if you're running a website that has at least Drupal 8.8, well then you can install this particular version of the module and you'll be ready to go to Drupal 9.

If you check every module and theme on your site, then you should be good to go.


The 2nd way is a little trickier, but basically will give you the same information.

  • go to the folder structure 
  • click on the modules folder
  • click on admin_toolbar folder
  • open admin_toolbar.info.yaml

Here's what you're going to see: core_version_requirement: ^8.8.0 ||  ^9.0 

That indicates that this module is ready for drupal 9.  If you see core: 8.x and you do NOT see core_version_requirement, your module has NOT been updated for Drupal 9 as of yet. You'll need to check back on the project page.


The 3rd way to do it is slightly more difficult, and there are two versions of it. The first version of this 3rd option is called Drupal-Check.

  • go to https://github.com/mglaman/drupal-check
  • install using Composer: composer global require mglaman/drupal-check
  • run drupal-check [OPTIONS] [DIRS]

You'll see an analysis of all of the modules on your site.  The instructions are on this page to give you a hand.

The second version of this 3rd option is called Upgrade Status, which is going to give you a report right on your Drupal site.

$ composer install --dev

$ composer require 'drupal/upgrade_status:^2.0'

If your Drupal 8 site is NOT based on Composer yet, this would be a good time to take care of that first.  Again all of the directions are on this page for you.  The Upgrade Status module gives you a lot more information than Drupal-Check does.

upgradeStatuspic.jpg


So to recap the 3 options:

  1. Use drupal.org/project/ the name of your project and check to see if the Drupal 9 version is available making sure that you are on the latest version of the module
  2. Use the .info.yaml file
  3. Use either drupal-check or the Upgrade Status modules 

The bottom line is this:

If you're on Drupal 8.9, you are probably ready to go, but don't take my word for it.  Do your tests, but be sure and set up a development version of your site BEFORE you do anything to the production version.

All right, I hope this has been helpful.

Thanks for watching. This has been OStips from OS Training, and I'm Rod Martin."



About the author

Rod holds two masters degrees and has been training people how to do "things" for over 25 years. Originally from Australia, he grew up in Canada and now resides just outside Cincinnati, Ohio.