function WorkspaceManager::switchToLive

Unsets the active workspace.

Return value

$this

Overrides WorkspaceManagerInterface::switchToLive

File

core/modules/workspaces/src/WorkspaceManager.php, line 130

Class

WorkspaceManager
Provides the workspace manager.

Namespace

Drupal\workspaces

Code

public function switchToLive() {
  $this->doSwitchWorkspace(NULL);
  // Unset the active workspace on all negotiators.
  foreach ($this->negotiators as $negotiator) {
    $negotiator->unsetActiveWorkspace();
  }
  return $this;
}

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