Compare commits

...

1 commit
main ... finish

Author SHA1 Message Date
Oliver Davies 709408893c Update deprecated code 2020-08-28 22:58:34 +01:00

View file

@ -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.');
}