Problem/Motivation

Remove all the occurrence of drupal_set_message() is deprecated

Proposed resolution

Drupal 8.5.x has introduced a new messenger service.

recently drupal_set_message() has been deprecated
#2774931

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

akshay_d created an issue. See original summary.

akshay_d’s picture

akshay_d’s picture

please review

lussoluca’s picture

We also need to use MessengerTrait where not in ControllerBase or FormBase subclasses

moshe weitzman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

jonathan1055’s picture

Title: drupal_set_message() is deprecated » Replace drupal_set_message() with $this->messenger in existing form/controller classes
Parent issue: » #3042575: [META] Deprecation issues in devel module

Added parent