Issue #2403097 by sergei_brill: Update format_date docblock (incorrect @see)
parent
3ae4f11886
commit
211db405e4
|
|
@ -420,7 +420,7 @@ function format_size($size, $langcode = NULL) {
|
||||||
* @return
|
* @return
|
||||||
* A translated date string in the requested format.
|
* A translated date string in the requested format.
|
||||||
*
|
*
|
||||||
* @see \Drupal\Component\Datetime\DateFormatter::format()
|
* @see \Drupal\Core\Datetime\DateFormatter::format()
|
||||||
*/
|
*/
|
||||||
function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {
|
function format_date($timestamp, $type = 'medium', $format = '', $timezone = NULL, $langcode = NULL) {
|
||||||
return \Drupal::service('date.formatter')->format($timestamp, $type, $format, $timezone, $langcode);
|
return \Drupal::service('date.formatter')->format($timestamp, $type, $format, $timezone, $langcode);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue