function content_moderation_entity_type_alter
Same name in other branches
- 8.9.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_type_alter()
- 10 core/modules/content_moderation/content_moderation.module \content_moderation_entity_type_alter()
- 11.x core/modules/content_moderation/content_moderation.module \content_moderation_entity_type_alter()
Implements hook_entity_type_alter().
File
-
core/
modules/ content_moderation/ content_moderation.module, line 92
Code
function content_moderation_entity_type_alter(array &$entity_types) {
\Drupal::service('class_resolver')->getInstanceFromDefinition(EntityTypeInfo::class)
->entityTypeAlter($entity_types);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.