Problem/Motivation

------ ---------------------------------------------------------------------- 
  Line   src/Form/DatalayerSettingsForm.php                                    
 ------ ---------------------------------------------------------------------- 
  178    Call to deprecated function drupal_set_message():                     
         in Drupal 8.5.0 and will be removed before Drupal 9.0.0.              
         Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.  
 ------ ---------------------------------------------------------------------- 
 
 [ERROR] Found 1 error

Proposed resolution

Replace the drupal_set_message() usage with the messenger service.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

WidgetsBurritos created an issue. See original summary.

WidgetsBurritos’s picture

PHP 5.5/5.6 build failures are unrelated. See #3069517: DrupalCI Test Runner is Broken

Patch is working in PHP 7.2

WidgetsBurritos’s picture

pobster’s picture

Status: Needs review » Reviewed & tested by the community

Great! Thank you :)

  • WidgetsBurritos committed 654aa68 on 8.x-1.x
    Issue #3069484 by WidgetsBurritos, pobtastic: Drupal 9 Deprecated Code...
WidgetsBurritos’s picture

Status: Reviewed & tested by the community » Fixed
WidgetsBurritos’s picture

WidgetsBurritos’s picture

Status: Fixed » Closed (fixed)
Kristen Pol’s picture

Issue tags: +Drupal 9 compatibility

Per a Slack discussion with Gábor Hojtsy regarding usage of D9 tags (Drupal 9, Drupal 9 compatibility, Drupal 9 readiness, etc.), "Drupal 9 compatibility" should be used for contributed projects that need updating and "Drupal 9" was the old tag for D8 issues before the D9 branch was ready. Doing tag cleanup here based on that discussion.