From 709408893cca4b5de50b39082201b40ec4b96e8c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 28 Aug 2020 22:58:34 +0100 Subject: [PATCH] Update deprecated code --- web/modules/custom/example/example.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/modules/custom/example/example.module b/web/modules/custom/example/example.module index 3df483d..885e8fb 100644 --- a/web/modules/custom/example/example.module +++ b/web/modules/custom/example/example.module @@ -13,5 +13,5 @@ use Drupal\Core\Entity\EntityInterface; * Implements hook_entity_view(). */ function example_entity_view(array &$build, EntityInterface $entity): void { - drupal_set_message(t('This is a node.')); + Drupal::messenger()->addMessage('This is a node.'); }