function media_library_test_entity_type_alter
Same name in other branches
- 9 core/modules/media_library/tests/modules/media_library_test/media_library_test.module \media_library_test_entity_type_alter()
- 10 core/modules/media_library/tests/modules/media_library_test/media_library_test.module \media_library_test_entity_type_alter()
- 11.x core/modules/media_library/tests/modules/media_library_test/media_library_test.module \media_library_test_entity_type_alter()
Implements hook_entity_type_alter().
File
-
core/
modules/ media_library/ tests/ modules/ media_library_test/ media_library_test.module, line 24
Code
function media_library_test_entity_type_alter(array &$entity_types) {
if (isset($entity_types['node'])) {
$entity_types['node']->setFormClass('default', TestNodeFormOverride::class);
$entity_types['node']->setFormClass('edit', TestNodeFormOverride::class);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.