diff --git a/core/modules/update/update.install b/core/modules/update/update.install
index ad2c026..06c6f8a 100644
--- a/core/modules/update/update.install
+++ b/core/modules/update/update.install
@@ -109,18 +109,16 @@ function _update_requirement_check($project, $type) {
if ($status != UPDATE_CURRENT) {
$requirement['reason'] = $status;
$requirement['severity'] = REQUIREMENT_ERROR;
+ // Append the available updates link to the message from
+ // _update_message_text(), and format the two translated strings together in
+ // a single paragraph.
+ $requirement['description'][] = ['#markup' => _update_message_text($type, $status)];
if (update_manager_access()) {
- $available_updates_text = t('See the available updates page for more information and to install your missing updates.', array('@available_updates' => \Drupal::url('update.report_update')));
+ $requirement['description'][] = ['#markup' => t('See the available updates page for more information and to install your missing updates.', array('@available_updates' => \Drupal::url('update.report_update')))];
}
else {
- $available_updates_text = t('See the available updates page for more information.', array('@available_updates' => \Drupal::url('update.status')));
+ $requirement['description'][] = ['#markup' => t('See the available updates page for more information.', array('@available_updates' => \Drupal::url('update.status')))];
}
- // Append the available updates link to the message from
- // _update_message_text(), and format the two translated strings together in
- // a single paragraph.
- // @todo Evaluate whether to use a render array instead following
- // https://www.drupal.org/node/2505499.
- $requirement['description'] = SafeMarkup::format('@text @available_updates_text', ['@text' => _update_message_text($type, $status), '@available_updates_text' => $available_updates_text]);
}
switch ($status) {
case UPDATE_NOT_SECURE: