summaryrefslogtreecommitdiffstats
path: root/core/modules/book/tests/modules/book_test/book_test.module
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/book/tests/modules/book_test/book_test.module')
-rw-r--r--core/modules/book/tests/modules/book_test/book_test.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/book/tests/modules/book_test/book_test.module b/core/modules/book/tests/modules/book_test/book_test.module
index 939e756..91da82c 100644
--- a/core/modules/book/tests/modules/book_test/book_test.module
+++ b/core/modules/book/tests/modules/book_test/book_test.module
@@ -17,6 +17,6 @@
function book_test_page_attachments(array &$page) {
$page['#cache']['tags'][] = 'book_test.debug_book_navigation_cache_context';
if (\Drupal::state()->get('book_test.debug_book_navigation_cache_context', FALSE)) {
- drupal_set_message(\Drupal::service('cache_contexts_manager')->convertTokensToKeys(['route.book_navigation'])->getKeys()[0]);
+ \Drupal::messenger()->addStatus(\Drupal::service('cache_contexts_manager')->convertTokensToKeys(['route.book_navigation'])->getKeys()[0]);
}
}