Skip to main content
Joachim's blog

Main navigation

  • Home
  • About

Breadcrumb

  1. Home

deprecation

By joachim, Fri, 23/01/2026 - 11:49

Converting hooks to OO methods made easy

Rector is a really powerful tool for making refactoring changes to your codebase. It's easy to use, but it's not obvious, and a lot of the documentation and articles about it are outdated or incomplete. For instance, when you go to the project page (https://www.drupal.org/project/rector) there's no clear indication of how to install it!

Tags

  • Rector
  • deprecation
  • phpcs
By joachim, Tue, 02/09/2025 - 13:17

The big plugin attribute change-over made easy

Attributes are here and they're great. I hated annotations; they were a necessary evil, but putting working code into comments just felt wrong.

Tags

  • module builder
  • plugins
  • Rector
  • deprecation
  • regex
deprecation

Frequent tags

  • Drupal Code Builder (9)
  • git (7)
  • module builder (6)
  • 6.x (5)
  • drupal commerce (4)
  • Drush (3)
  • Composer (3)
  • development (3)
  • Entity API (3)
  • Field API (3)
  • patching (3)
  • Rector (3)
  • wtf (2)
  • contributing code (2)
  • code style (2)
  • contrib module (2)
  • maintaining projects (2)
  • drupal.org (2)
  • debugging (2)
  • multisite (2)
  • deprecation (2)
  • tests (2)
  • core (2)
  • issue queue (2)
  • Drupal core (2)
  • modules (2)
  • roadmap (2)
  • 7.x (2)
  • developer tools (2)
Powered by Drupal