You are here

public function MultiversionManager::setActiveWorkspaceId in Multiversion 8

Parameters

string $id:

Overrides MultiversionManagerInterface::setActiveWorkspaceId

Deprecated

Should no longer be used.

See also

\Drupal\multiversion\Workspace\WorkspaceManager::setActiveWorkspace()

File

src/MultiversionManager.php, line 153

Class

MultiversionManager

Namespace

Drupal\multiversion

Code

public function setActiveWorkspaceId($id) {
  $workspace = $this->workspaceManager
    ->load($id);
  return $this->workspaceManager
    ->setActiveWorkspace($workspace);
}