Mercurial > hg > isophonics-drupal-site
diff core/modules/views_ui/src/ViewUI.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children | af1871eacc83 |
line wrap: on
line diff
--- a/core/modules/views_ui/src/ViewUI.php Tue Jul 10 15:07:59 2018 +0100 +++ b/core/modules/views_ui/src/ViewUI.php Thu Feb 28 13:21:36 2019 +0000 @@ -51,7 +51,7 @@ * \Drupal\Core\TempStore\SharedTempStore::getMetadata(). Which can be a stdClass or * NULL. * - * @var stdClass + * @var object */ public $lock; @@ -713,7 +713,7 @@ 'data' => [ '#markup' => $path, ], - ] + ], ]; } if ($show_stats) { @@ -790,7 +790,7 @@ else { foreach ($errors as $display_errors) { foreach ($display_errors as $error) { - drupal_set_message($error, 'error'); + \Drupal::messenger()->addError($error); } } $preview = ['#markup' => t('Unable to preview due to validation errors.')]; @@ -859,7 +859,7 @@ */ public function cacheSet() { if ($this->isLocked()) { - drupal_set_message(t('Changes cannot be made to a locked view.'), 'error'); + \Drupal::messenger()->addError(t('Changes cannot be made to a locked view.')); return; }