Support attribute-based plugins

Created on 23 April 2025, 1 day ago

Problem/Motivation

Starting in Drupal 10.2.0, plugins should be defined with PHP attributes instead of annotations.
When defining new plugin instances you should prefer PHP Attributes over annotations assuming the underlying plugin manager has been updated to support the use of attributes.

Proposed resolution

Allow PHP attributes for plugin definitions, as per https://www.drupal.org/docs/drupal-apis/plugin-api/attribute-based-plugins

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium svendecabooter Gent

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