Commit 5236486e authored by alexpott's avatar alexpott

Issue #2221771 by ianthomas_uk, rpayanm, Eli-T, Rolf van de Krol, pjonckiere,...

Issue #2221771 by ianthomas_uk, rpayanm, Eli-T, Rolf van de Krol, pjonckiere, xjm, DuaelFr: Mark all simple wrappers in bootstrap.inc and common.inc as deprecated
parent 5d0c1a6e
......@@ -343,6 +343,9 @@ function t($string, array $args = array(), array $options = array()) {
* @see \Drupal\Component\Utility\SafeMarkup::format()
* @see t()
* @ingroup sanitization
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal\Component\Utility\SafeMarkup::format().
*/
function format_string($string, array $args) {
return SafeMarkup::format($string, $args);
......@@ -373,6 +376,9 @@ function format_string($string, array $args) {
* TRUE if the text is valid UTF-8, FALSE if not.
*
* @see \Drupal\Component\Utility\Unicode::validateUtf8()
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal\Component\Utility\Unicode::validateUtf8().
*/
function drupal_validate_utf8($text) {
return Unicode::validateUtf8($text);
......
......@@ -367,6 +367,9 @@ function format_size($size, $langcode = NULL) {
* A translated date string in the requested format.
*
* @see \Drupal\Core\Datetime\DateFormatter::format()
*
* @deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0.
* Use \Drupal::service('date.formatter')->format().
*/
function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {
return \Drupal::service('date.formatter')->format($timestamp, $type, $format, $timezone, $langcode);
......
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