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.
SafeMarkup::checkPlain is going to depreciate.
Will be removed before Drupal 9.0.0. Rely on Twig's auto-escaping feature, or use the #plain_text key when constructing a render array that contains plain text in order to use the renderer's auto-escaping feature. If neither of these are possible, \Drupal\Component\Utility\Html::escape() can be used in places where explicit escaping is needed.
Comment | File | Size | Author |
---|---|---|---|
#12 | remove_deprecated-2734983-12.patch | 3.3 KB | dimaro |
#10 | drupal-2734983.patch | 3.28 KB | Nikhilesh Gupta |
#6 | drupal-2734983-6.patch | 3.5 KB | mayurjadhav |
#3 | drupal-2734983.patch | 5.09 KB | neerajsingh |
Comments
Comment #2
neerajsinghComment #3
neerajsinghPatched.
Comment #4
klausiThis is the SafeMarkup test, we don't want to change it here since we need to test the method (even if it is deprecated).
Comment #6
mayurjadhav CreditAttribution: mayurjadhav commentedReverted deprecated SafeMarkup changes from Test.
Comment #7
catchComment #8
Nikhilesh Gupta CreditAttribution: Nikhilesh Gupta as a volunteer and at Melity commentedAttached patch removes all SafeMarkup::checkPlain deprecated usages from core.
Comment #10
Nikhilesh Gupta CreditAttribution: Nikhilesh Gupta as a volunteer and at Melity commentedComment #12
dimaro CreditAttribution: dimaro at La Drupalera by Emergya commentedRerolled #10.
Simple rebase fixed it.
Comment #13
dimaro CreditAttribution: dimaro at La Drupalera by Emergya commentedI checked all the usages of
SafeMarkup::checkPlain
. All were removed except those in classSafeMarkupTest
.Comment #15
lucur CreditAttribution: lucur at Reinblau commentedPatch works for 8.3.x-dev
Comment #16
lucur CreditAttribution: lucur at Reinblau commentedComment #18
catchCommitted/pushed to 8.3.x, thanks!