config_install_dependency_test.module in Drupal 10
Provides hook implementations for testing purposes.
File
core/modules/config/tests/config_install_dependency_test/config_install_dependency_test.moduleView source
<?php
/**
* @file
* Provides hook implementations for testing purposes.
*/
use Drupal\Core\Entity\EntityInterface;
/**
* Implements hook_ENTITY_TYPE_create().
*/
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',
],
]);
}
Functions
Name | Description |
---|---|
config_install_dependency_test_config_test_create | Implements hook_ENTITY_TYPE_create(). |