function workspaces_entity_presave in Drupal 9
Same name and namespace in other branches
- 8 core/modules/workspaces/workspaces.module \workspaces_entity_presave()
Implements hook_entity_presave().
File
- core/
modules/ workspaces/ workspaces.module, line 100 - Provides full-site preview functionality for content staging.
Code
function workspaces_entity_presave(EntityInterface $entity) {
return \Drupal::service('class_resolver')
->getInstanceFromDefinition(EntityOperations::class)
->entityPresave($entity);
}