Problem/Motivation

The method ModuleHandler::getName() is deprecated in Drupal 10.3.0 and will be removed in Drupal 11.0.0.


The AdminForm class currently uses this method, triggering deprecation warnings.

See change record: https://www.drupal.org/node/3310017 (related to extension list transition).

Proposed resolution

1. Inject the extension.list.module service into \Drupal\mailsystem\Form\AdminForm.


2. Replace usages of $this->moduleHandler->getName($module) with $this->moduleExtensionList->getName($module).

Issue fork mailsystem-3564490

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

rollins created an issue. See original summary.

rollins’s picture

Status: Active » Needs work

rollins’s picture