Skip to Main Content
Menu
Close Menu

Drupal Rector: Progress Update

How the 0.12.4 release fixes the most common Drupal 10 depreciations

Drupal Rector 10 imagery

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 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 includes breaking changes to how we handle Drupal configuration. Therefore, the 0.12.5 release will include Rector 0.12.22, which will force developers to update their Rector configuration.

Luckily, it should be a simple matter of re-copying the configuration file. When we release the 0.12.5, 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