summaryrefslogtreecommitdiffstats
path: root/core/modules/book/src/Form/BookRemoveForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/book/src/Form/BookRemoveForm.php')
-rw-r--r--core/modules/book/src/Form/BookRemoveForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/book/src/Form/BookRemoveForm.php b/core/modules/book/src/Form/BookRemoveForm.php
index f61aa77..2d5a919 100644
--- a/core/modules/book/src/Form/BookRemoveForm.php
+++ b/core/modules/book/src/Form/BookRemoveForm.php
@@ -103,7 +103,7 @@ class BookRemoveForm extends ConfirmFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
if ($this->bookManager->checkNodeIsRemovable($this->node)) {
$this->bookManager->deleteFromBook($this->node->id());
- drupal_set_message($this->t('The post has been removed from the book.'));
+ $this->messenger()->addStatus($this->t('The post has been removed from the book.'));
}
$form_state->setRedirectUrl($this->getCancelUrl());
}