config_install_dependency_test.module 462 B

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