Issue #2920009 by shashikant_chauhan, tedbow, dinarcon, kwhite: Add Change record to @deprecated for Date format changes

8.5.x
Nathaniel Catchpole 2017-11-13 15:53:20 +00:00
parent 3f20ff5fbc
commit 72c6aff06e
1 changed files with 3 additions and 2 deletions

View File

@ -317,10 +317,11 @@ function format_size($size, $langcode = NULL) {
* @return
* 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().
*
* @see \Drupal\Core\Datetime\DateFormatter::format()
* @see https://www.drupal.org/node/1876852
*/
function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {
return \Drupal::service('date.formatter')->format($timestamp, $type, $format, $timezone, $langcode);