public function SessionWorkspaceNegotiator::setActiveWorkspace in Drupal 8
Same name and namespace in other branches
- 9 core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\SessionWorkspaceNegotiator::setActiveWorkspace()
File
- core/
modules/ workspaces/ src/ Negotiator/ SessionWorkspaceNegotiator.php, line 77
Class
- SessionWorkspaceNegotiator
- Defines the session workspace negotiator.
Namespace
Drupal\workspaces\NegotiatorCode
public function setActiveWorkspace(WorkspaceInterface $workspace) {
$this->session
->set('active_workspace_id', $workspace
->id());
}