function QueryParameterWorkspaceNegotiator::setActiveWorkspace
Same name and namespace in other branches
- 11.x core/modules/workspaces/src/Negotiator/QueryParameterWorkspaceNegotiator.php \Drupal\workspaces\Negotiator\QueryParameterWorkspaceNegotiator::setActiveWorkspace()
Overrides SessionWorkspaceNegotiator::setActiveWorkspace
File
-
core/
modules/ workspaces/ src/ Negotiator/ QueryParameterWorkspaceNegotiator.php, line 49
Class
- QueryParameterWorkspaceNegotiator
- Defines the query parameter workspace negotiator.
Namespace
Drupal\workspaces\NegotiatorCode
public function setActiveWorkspace(WorkspaceInterface $workspace) {
if ($this->persist) {
parent::setActiveWorkspace($workspace);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.