Issue #2920009 by shashikant_chauhan, tedbow, dinarcon, kwhite: Add Change record to @deprecated for Date format changes
parent
3f20ff5fbc
commit
72c6aff06e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue