Commit afac08a6 authored by catch's avatar catch

Issue #2699869 by er.pushpinderrana: deprecation notice for format_string()...

Issue #2699869 by er.pushpinderrana: deprecation notice for format_string() says to use SafeMarkup::format(), but that is also deprecated
parent f294840b
......@@ -301,12 +301,13 @@ function t($string, array $args = array(), array $options = array()) {
/**
* Formats a string for HTML display by replacing variable placeholders.
*
* @see \Drupal\Component\Utility\SafeMarkup::format()
* @see \Drupal\Component\Render\FormattableMarkup::placeholderFormat()
* @see \Drupal\Component\Render\FormattableMarkup
* @see t()
* @ingroup sanitization
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal\Component\Utility\SafeMarkup::format().
* Use \Drupal\Component\Render\FormattableMarkup.
*/
function format_string($string, array $args) {
return SafeMarkup::format($string, $args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment