Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views_ui/src/ViewUI.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/modules/views_ui/src/ViewUI.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/views_ui/src/ViewUI.php Thu Feb 28 13:11:55 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; }