Security update to Drupal 8.4.6
[yaffs-website] / web / core / modules / config / tests / config_install_dependency_test / config_install_dependency_test.module
1 <?php
2
3 /**
4  * @file
5  * Provides hook implementations for testing purposes.
6  */
7
8 use Drupal\Core\Entity\EntityInterface;
9
10 /**
11  * Implements hook_ENTITY_TYPE_create.
12  */
13 function config_install_dependency_test_config_test_create(EntityInterface $entity) {
14   // Add an enforced dependency on this module so that we can test if this is
15   // possible during module installation.
16   $entity->setEnforcedDependencies(['module' => ['config_install_dependency_test']]);
17 }