Remove deprecated plugin annotations

Created on 25 May 2025, 13 days ago

System information

  • Drupal Core Version: ^10.2 && ^11
  • Menu Migration Version: 4.0.1
  • PHP Version: >= 8.1 && <=8.3

Problem/Motivation

In version 4.0.0-alpha2, plugin annotations were converted to PHP attributes. However, the original annotation syntax was kept for backwards compatibility, even though the module was in an alpha stage and could have opted to remove them at that point.

Now that the module has progressed beyond alpha, and all documentation and API examples have been updated to use PHP attributes since 4.0.0-alpha2, the continued presence of annotations adds unnecessary code and potential confusion.

Proposed resolution

Remove the deprecated plugin annotations from the codebase. The module's functionality will rely solely on PHP attributes for plugin discovery.

Benefits:

  • Codebase simplification: Removing unused code makes the module easier to maintain and understand.
  • Clarity and consistency: Enforces the use of the modern PHP attribute syntax, aligning with current documentation and best practices.

Let's clean up the codebase and fully embrace PHP attributes!

📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇷🇴Romania bbu23

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024