function WorkspacesHooks::entityUpdate
Implements hook_entity_update().
File
-
core/
modules/ workspaces/ src/ Hook/ WorkspacesHooks.php, line 135
Class
- WorkspacesHooks
- Hook implementations for workspaces.
Namespace
Drupal\workspaces\HookCode
public function entityUpdate(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.