Problem/Motivation

in Drupal 10.3, plugins are no longer defined using an annotation; they are defined using an attribute class.

Proposed resolution

  • Replace the annotation class for UserRestrictionType plugins with an attribute class (The change must be backward compatible.)
  • Change the plugins to use the new attribute class

The 3.0.x branch already uses an attribute class for the plugins. The deprecation message needs to keep that in mind.

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

avpaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Needs review
avpaderno’s picture

Issue tags: -Needs change record

Drupal 11 does not show deprecation messages for code that still uses annotation classes.

  • avpaderno committed dac2e690 on 2.1.x
    Issue #3554369: Convert the UserRestrictionType plugins to attribute...
avpaderno’s picture

Status: Needs review » Fixed

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.