function content_moderation_entity_presave
Implements hook_entity_presave().
File
- 
              core/
modules/ content_moderation/ content_moderation.module, line 99  
Code
function content_moderation_entity_presave(EntityInterface $entity) {
  return \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityOperations::class)
    ->entityPresave($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.