Mercurial > hg > cmmr2012-drupal-site
diff core/modules/book/src/Controller/BookController.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/book/src/Controller/BookController.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/book/src/Controller/BookController.php Thu Feb 28 13:11:55 2019 +0000 @@ -154,7 +154,7 @@ // @todo Convert the custom export functionality to serializer. if (!method_exists($this->bookExport, $method)) { - drupal_set_message(t('Unknown export format.')); + $this->messenger()->addStatus(t('Unknown export format.')); throw new NotFoundHttpException(); }