function config_test_rest_entity_type_alter
Same name in other branches
- 9 core/modules/rest/tests/modules/config_test_rest/config_test_rest.module \config_test_rest_entity_type_alter()
- 8.9.x core/modules/rest/tests/modules/config_test_rest/config_test_rest.module \config_test_rest_entity_type_alter()
- 11.x core/modules/rest/tests/modules/config_test_rest/config_test_rest.module \config_test_rest_entity_type_alter()
Implements hook_entity_type_alter().
File
-
core/
modules/ rest/ tests/ modules/ config_test_rest/ config_test_rest.module, line 16
Code
function config_test_rest_entity_type_alter(array &$entity_types) {
// 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.