Problem/Motivation

CI and Upgrade Status both report that drupal_set_message() is not found in modern versions of Drupal, since it was removed in Drupal 9.

Steps to reproduce

Look at the phpstan results for this module, or scan it with Upgrade Status.

Proposed resolution

use MessengerInterface::addMessage() instead.

Remaining tasks

Make an MR. I'm assigning this ticket to myself since I intend to work on it right away.

Issue fork entity-3609102

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

benstallings created an issue. See original summary.

benstallings’s picture

Assigned: benstallings » Unassigned
Status: Active » Needs review

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

  • klausi committed db00a392 on 8.x-1.x authored by benstallings
    fix: #3609102 Fix deprecated drupal_set_message() calls
    
    By: bstallings
    
klausi’s picture

Status: Needs review » Fixed

Merged, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.