summaryrefslogtreecommitdiffstats
path: root/core/modules/book/src/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/book/src/Controller')
-rw-r--r--core/modules/book/src/Controller/BookController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/book/src/Controller/BookController.php b/core/modules/book/src/Controller/BookController.php
index b92c3e3..fa34d92 100644
--- a/core/modules/book/src/Controller/BookController.php
+++ b/core/modules/book/src/Controller/BookController.php
@@ -154,7 +154,7 @@ class BookController extends ControllerBase {
// @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();
}