function workbench_moderation_entity_presave in Workbench Moderation 8
Same name and namespace in other branches
- 8.2 workbench_moderation.module \workbench_moderation_entity_presave()
- 7.3 workbench_moderation.module \workbench_moderation_entity_presave()
Implements hook_entity_presave().
File
- ./
workbench_moderation.module, line 98 - Contains workbench_moderation.module.
Code
function workbench_moderation_entity_presave(EntityInterface $entity) {
return \Drupal::service('workbench_moderation.entity_operations')
->entityPresave($entity);
}