Mercurial > hg > isophonics-drupal-site
diff core/modules/system/src/Controller/DbUpdateController.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line diff
--- a/core/modules/system/src/Controller/DbUpdateController.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/system/src/Controller/DbUpdateController.php Thu Feb 28 13:21:36 2019 +0000 @@ -335,11 +335,11 @@ // 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)) { - drupal_set_message($this->t('No pending updates.')); + $this->messenger()->addStatus($this->t('No pending updates.')); unset($build); $build['links'] = [ '#theme' => 'links', @@ -524,7 +524,7 @@ $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');