You are here

function template_preprocess_submitted in Manage display 8

Prepares variables for 'submitted' field formatter template.

File

./manage_display.module, line 145
Make base fields such as 'title' available in "Manage Display".

Code

function template_preprocess_submitted(&$variables) {
  $variables['date'] = \Drupal::service('date.formatter')
    ->format($variables['date']);
}