X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fpager_test%2Fsrc%2FController%2FPagerTestController.php;fp=web%2Fcore%2Fmodules%2Fsystem%2Ftests%2Fmodules%2Fpager_test%2Fsrc%2FController%2FPagerTestController.php;h=4f1fdad6431c03c435793b7ac20acbd4f037cc27;hp=1964f740fe974c6330883637916a7e3f93ff802d;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php b/web/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php index 1964f740f..4f1fdad64 100644 --- a/web/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php +++ b/web/core/modules/system/tests/modules/pager_test/src/Controller/PagerTestController.php @@ -69,7 +69,7 @@ class PagerTestController extends ControllerBase { ], '#pre_render' => [ 'Drupal\pager_test\Controller\PagerTestController::showPagerCacheContext', - ] + ], ]; return $build; @@ -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; }