function workspaces_entity_update
Same name in other branches
- 9 core/modules/workspaces/workspaces.module \workspaces_entity_update()
- 8.9.x core/modules/workspaces/workspaces.module \workspaces_entity_update()
- 11.x core/modules/workspaces/workspaces.module \workspaces_entity_update()
Implements hook_entity_update().
File
-
core/
modules/ workspaces/ workspaces.module, line 146
Code
function workspaces_entity_update(EntityInterface $entity) {
if ($entity->getEntityTypeId() === 'workspace') {
\Drupal::service('workspaces.repository')->resetCache();
}
return \Drupal::service('class_resolver')->getInstanceFromDefinition(EntityOperations::class)
->entityUpdate($entity);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.