Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | datalayer-3069484-deprecated-code-4.patch | 991 bytes | WidgetsBurritos |
Comments
Comment #2
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedComment #3
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedPHP 5.5/5.6 build failures are unrelated. See #3069517: DrupalCI Test Runner is Broken
Patch is working in PHP 7.2
Comment #4
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedPer offline conversation with @pobtastic, we should use addWarning() instead of addMessage().
Comment #5
pobster CreditAttribution: pobster at ArcadeGeek LTD for Rackspace commentedGreat! Thank you :)
Comment #7
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedComment #8
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedComment #9
WidgetsBurritos CreditAttribution: WidgetsBurritos at Rackspace commentedComment #10
Kristen PolPer 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.