Skip to Main Content
Close Menu

Drupal Rector: Progress Update

How the 0.13.0 release fixes the most common Drupal 10 depreciations

Drupal Rector 10 imagery

Update -- 15 July 2022

The newest release is 0.13.0 and available at

If you update your project, be sure to copy the new configuration file, as shown in the original post.

Original Post

With Drupal 10 scheduled for December 14, 2022, we’ve been working with Matt Glaman, Gábor Hojtsy, and the Drupal 10 Readiness team to ensure that Drupal Rector can help upgrade modules for Drupal 10.

As part of that work, we recently released Drupal Rector 0.12.4. The 0.12.4 release is a stable release pinned to Rector 0.12.21. The 0.12.4 and 0.13.0 releases includes fixes for the 5 most common Drupal 10 deprecations:

  • drupal_get_path()
  • file_create_url()
  • render()
  • file_url_transform_relative()
  • file_save_data()

Developers should be aware that Rector 0.12.22 introduces breaking changes to how we handle Drupal configuration. Therefore, the 0.12.5 release of drupal-rector will include Rector 0.12.22, which will force developers to update their Rector configuration. Rector 0.12.22 includes breaking changes to how we handle Drupal configuration. 

Luckily, it should be a simple matter of re-copying the configuration file. When upgrading to 0.13.0, run the following command from your project root:

  • cp vendor/palantirnet/drupal-rector.php .

                [Note the trailing dot - it matters!]

Developers can continue to use the pinned 0.12.4 release, though new update rules will not be available to that release.

Let’s work together.

Have an exceptional idea? Let's talk and see how we can help.
Contact Us