class ConfigInstallDependencyTestHooks
Hook implementations for config_install_dependency_test.
Hierarchy
- class \Drupal\config_install_dependency_test\Hook\ConfigInstallDependencyTestHooks
Expanded class hierarchy of ConfigInstallDependencyTestHooks
File
-
core/
modules/ config/ tests/ config_install_dependency_test/ src/ Hook/ ConfigInstallDependencyTestHooks.php, line 13
Namespace
Drupal\config_install_dependency_test\HookView source
class ConfigInstallDependencyTestHooks {
/**
* Implements hook_ENTITY_TYPE_create().
*/
public function configTestCreate(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',
],
]);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
ConfigInstallDependencyTestHooks::configTestCreate | public | function | Implements hook_ENTITY_TYPE_create(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.