Add example module with a deprecation
This commit is contained in:
parent
e414469ca0
commit
c3b71960f5
3 changed files with 48 additions and 0 deletions
17
web/modules/custom/example/example.module
Normal file
17
web/modules/custom/example/example.module
Normal 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.'));
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue