summaryrefslogtreecommitdiffstats
path: root/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php')
-rw-r--r--core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
index 1964f74..3253b0c 100644
--- a/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
+++ b/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php
@@ -118,7 +118,7 @@ class PagerTestController extends ControllerBase {
* #pre_render callback for #type => pager that shows the pager cache context.
*/
public static function showPagerCacheContext(array $pager) {
- drupal_set_message(\Drupal::service('cache_contexts_manager')->convertTokensToKeys(['url.query_args.pagers:' . $pager['#element']])->getKeys()[0]);
+ \Drupal::messenger()->addStatus(\Drupal::service('cache_contexts_manager')->convertTokensToKeys(['url.query_args.pagers:' . $pager['#element']])->getKeys()[0]);
return $pager;
}