function ConfigTestRestHooks::entityTypeAlter
Implements hook_entity_type_alter().
File
-
core/
modules/ rest/ tests/ modules/ config_test_rest/ src/ Hook/ ConfigTestRestHooks.php, line 22
Class
- ConfigTestRestHooks
- Hook implementations for config_test_rest.
Namespace
Drupal\config_test_rest\HookCode
public function entityTypeAlter(array &$entity_types) : void {
// Undo part of what config_test_entity_type_alter() did: remove this
// config_test_no_status entity type, because it uses the same entity class
// as the config_test entity type, which makes REST deserialization
// impossible.
unset($entity_types['config_test_no_status']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.