Add example module with a deprecation

This commit is contained in:
Oliver Davies 2020-08-28 18:55:52 +01:00
parent e414469ca0
commit c3b71960f5
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<?php
/**
* @file
* An example module.
*/
declare(strict_types=1);
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.'));
}