function WorkspaceManagerInterface::getActiveWorkspace

Gets the active workspace.

Return value

\Drupal\workspaces\WorkspaceInterface|null The active workspace entity, or NULL if there's no active workspace.

1 method overrides WorkspaceManagerInterface::getActiveWorkspace()
WorkspaceManager::getActiveWorkspace in core/modules/workspaces/src/WorkspaceManager.php
Gets the active workspace.

File

core/modules/workspaces/src/WorkspaceManagerInterface.php, line 24

Class

WorkspaceManagerInterface
Provides an interface for managing Workspaces.

Namespace

Drupal\workspaces

Code

public function getActiveWorkspace();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.