protected function RevisionTreeIndex::keyValueStore in Multiversion 8.2
Same name and namespace in other branches
- 8 src/Entity/Index/RevisionTreeIndex.php \Drupal\multiversion\Entity\Index\RevisionTreeIndex::keyValueStore()
Parameters
string $uuid: The UUID for get the key value store for.
int|null $workspace_id: The workspace to get the key value store for.
Return value
\Drupal\Core\KeyValueStore\KeyValueStoreInterface The key value store.
File
- src/
Entity/ Index/ RevisionTreeIndex.php, line 265
Class
- RevisionTreeIndex
- The revision tree index.
Namespace
Drupal\multiversion\Entity\IndexCode
protected function keyValueStore($uuid, $workspace_id = NULL) {
if (!is_numeric($workspace_id)) {
$workspace_id = $this
->getWorkspaceId();
}
return $this->keyValueFactory
->get("multiversion.entity_index.rev.tree.{$workspace_id}.{$uuid}");
}