protected function EntityIndex::getWorkspaceId in Multiversion 8.2
Same name and namespace in other branches
- 8 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
Namespace
Drupal\multiversion\Entity\IndexCode
protected function getWorkspaceId() {
return $this->workspaceId ?: $this->workspaceManager
->getActiveWorkspace()
->id();
}