function ConfigEntityStaticCacheTestHooks::entityTypeAlter

Implements hook_entity_type_alter().

File

core/modules/config/tests/config_entity_static_cache_test/src/Hook/ConfigEntityStaticCacheTestHooks.php, line 34

Class

ConfigEntityStaticCacheTestHooks
Hook implementations for config_entity_static_cache_test.

Namespace

Drupal\config_entity_static_cache_test\Hook

Code

public function entityTypeAlter(array &$entity_types) : void {
    
    /** @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.