function content_moderation_entity_update in Drupal 9
Same name and namespace in other branches
- 8 core/modules/content_moderation/content_moderation.module \content_moderation_entity_update()
Implements hook_entity_update().
File
- core/
modules/ content_moderation/ content_moderation.module, line 119 - Contains content_moderation.module.
Code
function content_moderation_entity_update(EntityInterface $entity) {
return \Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityOperations::class)
->entityUpdate($entity);
}