function WorkspaceRepository::resetCache
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::resetCache()
- 8.9.x core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::resetCache()
- 11.x core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::resetCache()
File
-
core/
modules/ workspaces/ src/ WorkspaceRepository.php, line 147
Class
- WorkspaceRepository
- Provides the default workspace tree lookup operations.
Namespace
Drupal\workspacesCode
public function resetCache() {
$this->cache
->invalidate('workspace_tree');
$this->tree = NULL;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.