config_install_dependency_test.module
Same filename in other branches
Provides hook implementations for testing purposes.
File
-
core/
modules/ config/ tests/ config_install_dependency_test/ config_install_dependency_test.module
View 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
Title | Deprecated | Summary |
---|---|---|
config_install_dependency_test_config_test_create | Implements hook_ENTITY_TYPE_create(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.