You are here

protected function WorkspaceController::getDefaultWorkspacePointer in Workspace 8

Returns the upstream for the given workspace.

File

src/Controller/WorkspaceController.php, line 105

Class

WorkspaceController
WorkspaceController class.

Namespace

Drupal\workspace\Controller

Code

protected function getDefaultWorkspacePointer() {
  $workspace_id = $this
    ->getDefaultWorkspaceId();
  $workspace = Workspace::load($workspace_id);
  return WorkspacePointer::loadFromWorkspace($workspace);
}