Update deprecated code
This commit is contained in:
parent
9a43be4a9c
commit
709408893c
1 changed files with 1 additions and 1 deletions
|
@ -13,5 +13,5 @@ use Drupal\Core\Entity\EntityInterface;
|
||||||
* Implements hook_entity_view().
|
* Implements hook_entity_view().
|
||||||
*/
|
*/
|
||||||
function example_entity_view(array &$build, EntityInterface $entity): void {
|
function example_entity_view(array &$build, EntityInterface $entity): void {
|
||||||
drupal_set_message(t('This is a node.'));
|
Drupal::messenger()->addMessage('This is a node.');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue