5 * Provides hook implementations for testing purposes.
8 use Drupal\Core\Entity\EntityInterface;
11 * Implements hook_ENTITY_TYPE_create.
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']]);