Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / block / tests / modules / block_test / src / Plugin / Block / TestContextAwareBlock.php
index 7db350da8133b541af2c1a42f99bf667f47a673f..51f60b473af5f94ec447fdc8b5534dbaec09e6c6 100644 (file)
@@ -37,7 +37,7 @@ class TestContextAwareBlock extends BlockBase {
    */
   protected function blockAccess(AccountInterface $account) {
     if ($this->getContextValue('user') instanceof UserInterface) {
-      drupal_set_message('User context found.');
+      $this->messenger()->addStatus('User context found.');
     }
 
     return parent::blockAccess($account);