public function WorkspaceManager::hasActiveWorkspace in Drupal 10
Same name and namespace in other branches
- 8 core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace()
- 9 core/modules/workspaces/src/WorkspaceManager.php \Drupal\workspaces\WorkspaceManager::hasActiveWorkspace()
File
- core/
modules/ workspaces/ src/ WorkspaceManager.php, line 166
Class
- WorkspaceManager
- Provides the workspace manager.
Namespace
Drupal\workspacesCode
public function hasActiveWorkspace() {
return $this
->getActiveWorkspace() !== FALSE;
}