You are here

protected function RevisionTreeIndex::getWorkspaceId in Multiversion 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Index/RevisionTreeIndex.php \Drupal\multiversion\Entity\Index\RevisionTreeIndex::getWorkspaceId()

Helper method to get the workspace ID to query.

2 calls to RevisionTreeIndex::getWorkspaceId()
RevisionTreeIndex::buildTree in src/Entity/Index/RevisionTreeIndex.php
Helper method to build the revision tree.
RevisionTreeIndex::keyValueStore in src/Entity/Index/RevisionTreeIndex.php

File

src/Entity/Index/RevisionTreeIndex.php, line 406

Class

RevisionTreeIndex
The revision tree index.

Namespace

Drupal\multiversion\Entity\Index

Code

protected function getWorkspaceId() {
  return $this->workspaceId ?: $this->workspaceManager
    ->getActiveWorkspace()
    ->id();
}