You are here

public function SessionWorkspaceNegotiator::persist in Multiversion 8

Parameters

\Drupal\multiversion\Entity\WorkspaceInterface $workspace:

Return value

boolean

Overrides WorkspaceNegotiatorBase::persist

File

src/Workspace/SessionWorkspaceNegotiator.php, line 45

Class

SessionWorkspaceNegotiator

Namespace

Drupal\multiversion\Workspace

Code

public function persist(WorkspaceInterface $workspace) {
  $this->tempstore
    ->set('active_workspace_id', $workspace
    ->id());
  return TRUE;
}