How to check Deprecated Code in Drupal

 If you are a Drupal developer, and you want to migrate from Drupal 8  to Drupal 9. Then first you want to check "deprecated" code in your Drupal 8 project.

What is deprecated code?

Code in Drupal is marked as "deprecated" when it should no longer be used.

There are a few ways to check if your site is using deprecated code.

1. run drupal-check.

Matt Glaman (Centarro) developed a static PHP analysis tool called drupal-check , which you can run against your codebase to check for deprecated code.

You can install this in your project using Composer as a development dependency like so:

composer require mglaman/drupal-check --dev

You can also install this globally using Composer like so:

composer global require mglaman/drupal-check

For more information about drupal-check. Please look below link

https://github.com/mglaman/drupal-check

2. With drupal contributed module "Upgrade Status"

https://www.drupal.org/project/upgrade_status

If you want to check how Upgrade Status Module work. Please look below link

https://wartalab.blogspot.com/2020/07/upgrading-drupal-8-site-to-drupal-9.html







1 comment:

Inwizards Software said...

Such a great blog! I am looking for these kinds of blogs for last many days. Keep it up. Thanks for sharing it with us
web and app development company
hire xamarin developers
hire .net developers
hire android developers

Write a program in PHP to reverse a number

A number can be written in reverse order. For example 12345 = 54321 <?php   $ num = 23456;   $ revnum = 0;   while ($ num > 1)   {   $...