Removing deprecated drupal_set_message function

Created on 5 August 2020, almost 4 years ago
Updated 31 January 2023, over 1 year ago

Problem/Motivation

Even thou 8.x-5.2 is marked D9 compatible, there is a minor issue on 2 function calls.
https://www.drupal.org/node/2774931

On a 9.0.2 site, this triggered an error.

Deprecated

in Drupal 8.5.0 and will be removed before Drupal 9.0.0. Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.

Steps to reproduce

Proposed resolution

Replace the usage of drupal_set_message with $this->messenger()->addStatus

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

🇨🇦Canada gobinathm Milton

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024