comparison core/modules/update/update.install @ 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
112 // message from _update_message_text(), and format the two translated 112 // message from _update_message_text(), and format the two translated
113 // strings together in a single paragraph. 113 // strings together in a single paragraph.
114 $requirement['description'][] = ['#markup' => _update_message_text($type, $status)]; 114 $requirement['description'][] = ['#markup' => _update_message_text($type, $status)];
115 if (!in_array($status, [UPDATE_UNKNOWN, UPDATE_NOT_CHECKED, UPDATE_NOT_FETCHED, UPDATE_FETCH_PENDING])) { 115 if (!in_array($status, [UPDATE_UNKNOWN, UPDATE_NOT_CHECKED, UPDATE_NOT_FETCHED, UPDATE_FETCH_PENDING])) {
116 if (_update_manager_access()) { 116 if (_update_manager_access()) {
117 $requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href=":available_updates">available updates</a> page for more information and to install your missing updates.', [':available_updates' => \Drupal::url('update.report_update')])]; 117 $requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href=":available_updates">available updates</a> page for more information and to install your missing updates.', [':available_updates' => Url::fromRoute('update.report_update')->toString()])];
118 } 118 }
119 else { 119 else {
120 $requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href=":available_updates">available updates</a> page for more information.', [':available_updates' => \Drupal::url('update.status')])]; 120 $requirement['description'][] = ['#prefix' => ' ', '#markup' => t('See the <a href=":available_updates">available updates</a> page for more information.', [':available_updates' => Url::fromRoute('update.status')->toString()])];
121 } 121 }
122 } 122 }
123 } 123 }
124 switch ($status) { 124 switch ($status) {
125 case UPDATE_NOT_SECURE: 125 case UPDATE_NOT_SECURE: