Issue #2555473 by stefan.r, cilefen, alexpott, plach: Deprecate SafeMarkup::checkPlain() for Drupal 8.0.x

8.0.x
Nathaniel Catchpole 2015-08-31 11:06:00 +01:00
parent e513467c52
commit 711872ed17
1 changed files with 7 additions and 0 deletions

View File

@ -169,6 +169,13 @@ class SafeMarkup {
*
* @ingroup sanitization
*
* @deprecated Will be removed before Drupal 8.0.0. Rely on Twig's
* auto-escaping feature, or use the @link theme_render #plain_text @endlink
* 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.
*
* @see drupal_validate_utf8()
*/
public static function checkPlain($text) {