diff -u b/core/modules/update/update.install b/core/modules/update/update.install
--- b/core/modules/update/update.install
+++ b/core/modules/update/update.install
@@ -117,16 +117,16 @@
$requirement['description'][] = [
'#prefix' => ' ',
'#markup' => t('Review and install pending updates.',
- [':pending_updates' => \Drupal\Core\Url::fromRoute('update.report_update')->toString()]
- )
+ [':pending_updates' => Url::fromRoute('update.report_update')->toString()]
+ ),
];
}
else {
$requirement['description'][] = [
'#prefix' => ' ',
'#markup' => t('See the available updates page for more information.',
- [':available_updates' => \Drupal\Core\Url::fromRoute('update.status')->toString()]
- )
+ [':available_updates' => Url::fromRoute('update.status')->toString()]
+ ),
];
}
}
diff -u b/core/modules/update/update.module b/core/modules/update/update.module
--- b/core/modules/update/update.module
+++ b/core/modules/update/update.module
@@ -569,8 +569,7 @@
case UPDATE_FETCH_PENDING:
// \Drupal::url('update.status')
$text = t('There was a problem checking available updates.',
- [':update-report' => \Drupal\Core\Url::fromRoute('update.status')->toString() ],
-
+ [':update-report' => Url::fromRoute('update.status')->toString() ],
['langcode' => $langcode]
);
break;