Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
333 } | 333 } |
334 } | 334 } |
335 | 335 |
336 // Warn the user if any updates were incompatible. | 336 // Warn the user if any updates were incompatible. |
337 if ($incompatible_updates_exist) { | 337 if ($incompatible_updates_exist) { |
338 drupal_set_message($this->t('Some of the pending updates cannot be applied because their dependencies were not met.'), 'warning'); | 338 $this->messenger()->addWarning($this->t('Some of the pending updates cannot be applied because their dependencies were not met.')); |
339 } | 339 } |
340 | 340 |
341 if (empty($count)) { | 341 if (empty($count)) { |
342 drupal_set_message($this->t('No pending updates.')); | 342 $this->messenger()->addStatus($this->t('No pending updates.')); |
343 unset($build); | 343 unset($build); |
344 $build['links'] = [ | 344 $build['links'] = [ |
345 '#theme' => 'links', | 345 '#theme' => 'links', |
346 '#links' => $this->helpfulLinks($request), | 346 '#links' => $this->helpfulLinks($request), |
347 ]; | 347 ]; |
522 $try_again_url = Url::fromUri($request->getUriForPath(''))->setOptions(['query' => $options])->toString(TRUE)->getGeneratedUrl(); | 522 $try_again_url = Url::fromUri($request->getUriForPath(''))->setOptions(['query' => $options])->toString(TRUE)->getGeneratedUrl(); |
523 | 523 |
524 $build['status_report'] = [ | 524 $build['status_report'] = [ |
525 '#type' => 'status_report', | 525 '#type' => 'status_report', |
526 '#requirements' => $requirements, | 526 '#requirements' => $requirements, |
527 '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url]) | 527 '#suffix' => $this->t('Check the messages and <a href=":url">try again</a>.', [':url' => $try_again_url]), |
528 ]; | 528 ]; |
529 | 529 |
530 $build['#title'] = $this->t('Requirements problem'); | 530 $build['#title'] = $this->t('Requirements problem'); |
531 return $build; | 531 return $build; |
532 } | 532 } |