config_install_dependency_test.module 462 Bytes
Newer Older
1 2 3 4 5 6 7
<?php

/**
 * @file
 * Provides hook implementations for testing purposes.
 */

8 9
use Drupal\Core\Entity\EntityInterface;

10 11 12
/**
 * Implements hook_ENTITY_TYPE_create.
 */
13
function config_install_dependency_test_config_test_create(EntityInterface $entity) {
14 15 16 17
  // Add an enforced dependency on this module so that we can test if this is
  // possible during module installation.
  $entity->setEnforcedDependencies(['module' => ['config_install_dependency_test']]);
}