comparison core/modules/update/update.report.inc @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
116 $variables['title'] = (isset($project['title'])) ? $project['title'] : $project['name']; 116 $variables['title'] = (isset($project['title'])) ? $project['title'] : $project['name'];
117 $variables['url'] = (isset($project['link'])) ? Url::fromUri($project['link'])->toString() : NULL; 117 $variables['url'] = (isset($project['link'])) ? Url::fromUri($project['link'])->toString() : NULL;
118 118
119 $variables['install_type'] = $project['install_type']; 119 $variables['install_type'] = $project['install_type'];
120 if ($project['install_type'] == 'dev' && !empty($project['datestamp'])) { 120 if ($project['install_type'] == 'dev' && !empty($project['datestamp'])) {
121 $variables['datestamp'] = format_date($project['datestamp'], 'custom', 'Y-M-d'); 121 $variables['datestamp'] = \Drupal::service('date.formatter')->format($project['datestamp'], 'custom', 'Y-M-d');
122 } 122 }
123 123
124 $variables['existing_version'] = $project['existing_version']; 124 $variables['existing_version'] = $project['existing_version'];
125 125
126 $versions_inner = []; 126 $versions_inner = [];