You are here

function config_install_dependency_test_config_test_create in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module \config_install_dependency_test_config_test_create()

Implements hook_ENTITY_TYPE_create.

File

core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.module, line 13
Provides hook implementations for testing purposes.

Code

function config_install_dependency_test_config_test_create(EntityInterface $entity) {

  // 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',
    ],
  ]);
}