Problem/Motivation

Drupal 10.3 made available defining plugins using PHP Attributes (https://www.drupal.org/docs/drupal-apis/plugin-api/attribute-based-plugins), and legacy Doctrine-style Annotation support will be dropped in Drupal 13, per https://www.drupal.org/node/3551049 .

We should retain Doctrine-style Annotation syntax for the time being to not affect backwards compatibility for sites running < Drupal 10.3.

Steps to reproduce

N/A

Proposed resolution

Add PHP Attribute syntax to src/Plugin/Filter/FilterPathologic.php

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork pathologic-3612870

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mark_fullmer created an issue. See original summary.

mark_fullmer’s picture

Status: Active » Fixed

I vouch that I tested these proposed changes in a separate context where the Doctrine Annotations were removed, establishing that the new PHP Attribute syntax was correctly being discovered and working. Given this and given the automated test passage, I'll proceed to merge this into the 2.0.x branch, as it does not have any affect on the module's backward compatibility with legacy versions of Drupal core.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.