Problem/Motivation
Drupal\Component\Utility\SafeMarkup is deprecated in Drupal 9.
Proposed resolution
Html::escape() should be used instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d9_depreciated_class_called-3205579-3.patch | 870 bytes | jkuan |
Drupal\Component\Utility\SafeMarkup is deprecated in Drupal 9.
Html::escape() should be used instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | d9_depreciated_class_called-3205579-3.patch | 870 bytes | jkuan |
Comments
Comment #2
svenryen commentedHere's a patch to resolve the issue.
Comment #3
jkuan commented@svenryen thanks for the patch! However, I also had to include
use Drupal\Component\Utility\Html;and removeuse Drupal\Component\Utility\SafeMarkupfrom the code to fully implement the change.Patch that includes both changes for anyone that wants to use this module for Drupal 9.
Comment #4
jkuan commentedComment #5
svenryen commentedThanks for spotting that. I must have been in rush when I made the patch.
Comment #6
gaurav.kapoor commentedThis has been resolved.