You are here

public function ConflictTrackerInterface::useWorkspace in Multiversion 8.2

Sets the workspace to be used in subsequent queries.

If no workspace is set the default workspace will be used.

Parameters

\Drupal\workspaces\Entity\Workspace $workspace: The id of the workspace.

Return value

\Drupal\multiversion\Conflict\ConflictTrackerInterface

See also

\Drupal\workspaces\WorkspaceManagerInterface::getActiveWorkspace().

1 method overrides ConflictTrackerInterface::useWorkspace()
ConflictTracker::useWorkspace in src/Conflict/ConflictTracker.php
Sets the workspace to be used in subsequent queries.

File

src/Conflict/ConflictTrackerInterface.php, line 24

Class

ConflictTrackerInterface
The interface for services that track conflicts in a workspace.

Namespace

Drupal\multiversion\Conflict

Code

public function useWorkspace(Workspace $workspace);