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

Comments

gobinathm created an issue. See original summary.

amritendu1980’s picture

StatusFileSize
new947 bytes

By using this patch we can resolve the compatibility error message

suresh prabhu parkala’s picture

Status: Active » Reviewed & tested by the community

Thanks @amritendu1980. Patch applied without error.

gobinathm’s picture

Title: Drupal 9 Compatability Issue ? » Deprecated function 'drupal_set_message` still in use
rajab natshah’s picture

Title: Deprecated function 'drupal_set_message` still in use » Removing deprecated function drupal_set_message
Version: 8.x-5.2 » 8.x-5.x-dev
Status: Reviewed & tested by the community » Active

Dropping support for Drupal 8

rajab natshah’s picture

Title: Removing deprecated function drupal_set_message » Removing deprecated drupal_set_message function
rajab natshah’s picture

StatusFileSize
new4 KB

  • Rajab Natshah committed 32b21106 on 8.x-5.x
    Issue #3163634: Removing deprecated drupal_set_message function
    
rajab natshah’s picture

Assigned: Unassigned » rajab natshah

  • Rajab Natshah committed 9756fae3 on 8.x-5.x
    Issue #3163634: Removing deprecated drupal_set_message function
    

  • Rajab Natshah committed c88ebbf4 on 8.x-5.x
    Issue #3163634: Removing deprecated drupal_set_message function
    
rajab natshah’s picture

rajab natshah’s picture

Assigned: rajab natshah » Unassigned
Status: Active » Needs review
rajab natshah’s picture

Had Real physical testing round for Bootstrap Layouts 5.x-dev with Drupal ~10 and Drupal ~9.0

Using the following setup process with field_layout, layout_builder, and ds
Real-physical-testing-round-for-bootstrap_layouts-5-x-dev--with-d10-and-d9.zip

rajab natshah’s picture

Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)

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