You are here

public function WorkspaceManager::getActiveWorkspace in Multiversion 8

@todo {@link https://www.drupal.org/node/2600382 Access check.}

Overrides WorkspaceManagerInterface::getActiveWorkspace

File

src/Workspace/WorkspaceManager.php, line 99

Class

WorkspaceManager

Namespace

Drupal\multiversion\Workspace

Code

public function getActiveWorkspace() {
  $workspace_id = $this
    ->getActiveWorkspaceId();
  if ($workspace = $this
    ->load($workspace_id)) {
    return $workspace;
  }
}