function UpdateMessageTrait::noData
Returns a warning message when there is no data about available updates.
Return value
\Drupal\Core\StringTranslation\TranslatableMarkup Translatable markup.
File
-
core/
modules/ update/ src/ UpdateMessageTrait.php, line 19
Class
- UpdateMessageTrait
- Provides helpers for update messages.
Namespace
Drupal\updateCode
protected function noData() : TranslatableMarkup {
$destination = \Drupal::destination()->getAsArray();
return t('No update information available. <a href=":run_cron">Run cron</a> or <a href=":check_manually">check manually</a>.', [
':run_cron' => Url::fromRoute('system.run_cron', [], [
'query' => $destination,
])->toString(),
':check_manually' => Url::fromRoute('update.manual_status', [], [
'query' => $destination,
])->toString(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.