You are here

public function CronWorkspaceNegotiator::persist in Multiversion 8

Parameters

\Drupal\multiversion\Entity\WorkspaceInterface $workspace:

Return value

boolean

Overrides WorkspaceNegotiatorBase::persist

File

src/Workspace/CronWorkspaceNegotiator.php, line 46

Class

CronWorkspaceNegotiator

Namespace

Drupal\multiversion\Workspace

Code

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