You are here

function content_moderation_entity_presave in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/content_moderation/content_moderation.module \content_moderation_entity_presave()
  2. 10 core/modules/content_moderation/content_moderation.module \content_moderation_entity_presave()

Implements hook_entity_presave().

File

core/modules/content_moderation/content_moderation.module, line 101
Contains content_moderation.module.

Code

function content_moderation_entity_presave(EntityInterface $entity) {
  return \Drupal::service('class_resolver')
    ->getInstanceFromDefinition(EntityOperations::class)
    ->entityPresave($entity);
}