Add support for Attributes

Created on 12 March 2025, 21 days ago

Problem/Motivation

Please add support for PHP Attributes. This module requires 10.2 which supports Attributes and is the recommended way to add Plugin types

Steps to reproduce

1. Create new ListOptions Plugin
2. Use Attribute instead of Annotation
3. Plugin is not discovered

Proposed resolution

Add a new class that extends Drupal\Component\Plugin\Attribute\Plugin

Remaining tasks

Add class and update the plugin manager

User interface changes

none

API changes

ListOption plugins can use either Annotations or Attributes

Data model changes

none

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States yonghua

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