You are here

public function WorkspaceRepository::resetCache in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/workspaces/src/WorkspaceRepository.php \Drupal\workspaces\WorkspaceRepository::resetCache()

Resets the cached workspace tree.

Return value

$this

Overrides WorkspaceRepositoryInterface::resetCache

File

core/modules/workspaces/src/WorkspaceRepository.php, line 144

Class

WorkspaceRepository
Provides the default workspace tree lookup operations.

Namespace

Drupal\workspaces

Code

public function resetCache() {
  $this->tree = NULL;
  return $this;
}