Convert all plugins to use attributes over annotations

Created on 4 April 2025, 12 days ago

Overview

Now we require Drupal 11.1 we can use attributes instead of annotations in plugins for better DX.

Proposed resolution

 * @ConfigEntityType(
 *    id = \Drupal\experience_builder\Entity\Component::ENTITY_TYPE_ID,
 *    label = @Translation("Component"),
 *    label_singular = @Translation("component"),
...

becomes

#[ConfigEntityType(
  id: Component::ENTITY_TYPE_ID,
  label: new TranslatableMarkup('Component'),
  label_singular: new TranslatableMarkup('Component'),
...

User interface changes

๐Ÿ“Œ Task
Status

Active

Version

0.0

Component

Code

Created by

๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom longwave UK

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024