Problem/Motivation

The MailManagerDecorator uses an out-of-date definition of the MailManager plugin manager definition.
Since Drupal 10.3.0 the Mail plugins using attributes instead of annotations, so when this module gets enabled, the related plugins with attribute-only definition become unavailable.

Related core change: https://git.drupalcode.org/project/drupal/-/commit/a2c8988da4ca9bc96729c...

Steps to reproduce

  • Install Drupal core.
  • Check available plugins by running drush ev "print_r(array_keys(\Drupal::service('plugin.manager.mail')->getDefinitions()));".
  • Enable view_usernames module.
  • Run drush cr.
  • Run drush ev "print_r(array_keys(\Drupal::service('plugin.manager.mail')->getDefinitions()));" command again to check for the available plugins.

While the module is not enabled the command will show the core defined mail plugin IDs, but after enabling the module the list will be empty.

Proposed resolution

Update MailManagerDecorator to be in sync with the MailManager plugin manager's definition.

Remaining tasks

Create merge request.

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

yce created an issue. See original summary.

yce’s picture

Issue summary: View changes

mxr576 made their first commit to this issue’s fork.

mxr576’s picture

  • mxr576 committed d0a5921f on 1.x
    Issue #3536768 by mxr576, yce: MailManagerDecorator renders related...
mxr576’s picture

Status: Active » Fixed

Thanks for raising awareness for this major issue Yce and providing a fix for it!

Status: Fixed » Closed (fixed)

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