function ConfigTranslationTestHooks::entityTypeAlter

Implements hook_entity_type_alter().

File

core/modules/config_translation/tests/modules/config_translation_test/src/Hook/ConfigTranslationTestHooks.php, line 30

Class

ConfigTranslationTestHooks
Hook implementations for config_translation_test.

Namespace

Drupal\config_translation_test\Hook

Code

public function entityTypeAlter(array &$entity_types) : void {
    // Remove entity definition for these entity types from config_test module.
    unset($entity_types['config_test_no_status']);
    unset($entity_types['config_query_test']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.