Initial Drupal 11 with DDEV setup
This commit is contained in:
22
vendor/chi-teck/drupal-code-generator/templates/_install-file/install.twig
vendored
Normal file
22
vendor/chi-teck/drupal-code-generator/templates/_install-file/install.twig
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Install, update and uninstall functions for the {{ name }} module.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_install().
|
||||
*/
|
||||
function {{ machine_name }}_install(): void {
|
||||
\Drupal::messenger()->addStatus(t('Module {{ name }} has been installed.'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uninstall().
|
||||
*/
|
||||
function {{ machine_name }}_uninstall(): void {
|
||||
\Drupal::messenger()->addStatus(t('Module {{ name }} has been uninstalled.'));
|
||||
}
|
||||
Reference in New Issue
Block a user