function config_entity_static_cache_test_entity_type_alter
Same name in other branches
- 9 core/modules/config/tests/config_entity_static_cache_test/config_entity_static_cache_test.module \config_entity_static_cache_test_entity_type_alter()
- 8.9.x core/modules/config/tests/config_entity_static_cache_test/config_entity_static_cache_test.module \config_entity_static_cache_test_entity_type_alter()
- 10 core/modules/config/tests/config_entity_static_cache_test/config_entity_static_cache_test.module \config_entity_static_cache_test_entity_type_alter()
Implements hook_entity_type_alter().
File
-
core/
modules/ config/ tests/ config_entity_static_cache_test/ config_entity_static_cache_test.module, line 30
Code
function config_entity_static_cache_test_entity_type_alter(array &$entity_types) {
/** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */
$entity_types['config_test']->set('static_cache', TRUE);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.