You are here

protected function EntityIndex::getWorkspaceId in Multiversion 8

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

Helper method for getting what workspace ID to query.

2 calls to EntityIndex::getWorkspaceId()
EntityIndex::addMultiple in src/Entity/Index/EntityIndex.php
EntityIndex::getMultiple in src/Entity/Index/EntityIndex.php

File

src/Entity/Index/EntityIndex.php, line 153

Class

EntityIndex

Namespace

Drupal\multiversion\Entity\Index

Code

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