projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
system
/
src
/
Controller
/
DbUpdateController.php
diff --git
a/web/core/modules/system/src/Controller/DbUpdateController.php
b/web/core/modules/system/src/Controller/DbUpdateController.php
index 9e0a374a4a86664e74c2ddeb3e5ef86d482487ff..25a2a708918601f5720c6150924a28235c4276ac 100644
(file)
--- a/
web/core/modules/system/src/Controller/DbUpdateController.php
+++ b/
web/core/modules/system/src/Controller/DbUpdateController.php
@@
-335,11
+335,11
@@
class DbUpdateController extends ControllerBase {
// Warn the user if any updates were incompatible.
if ($incompatible_updates_exist) {
// Warn the user if any updates were incompatible.
if ($incompatible_updates_exist) {
-
drupal_set_message($this->t('Some of the pending updates cannot be applied because their dependencies were not met.'), 'warning'
);
+
$this->messenger()->addWarning($this->t('Some of the pending updates cannot be applied because their dependencies were not met.')
);
}
if (empty($count)) {
}
if (empty($count)) {
-
drupal_set_message
($this->t('No pending updates.'));
+
$this->messenger()->addStatus
($this->t('No pending updates.'));
unset($build);
$build['links'] = [
'#theme' => 'links',
unset($build);
$build['links'] = [
'#theme' => 'links',
@@
-524,7
+524,7
@@
class DbUpdateController extends ControllerBase {
$build['status_report'] = [
'#type' => 'status_report',
'#requirements' => $requirements,
$build['status_report'] = [
'#type' => 'status_report',
'#requirements' => $requirements,
- '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url])
+ '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url])
,
];
$build['#title'] = $this->t('Requirements problem');
];
$build['#title'] = $this->t('Requirements problem');