You are here

protected function EntityIndex::keyValueStore in Multiversion 8

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

Parameters

int $workspace_id:

Return value

\Drupal\Core\KeyValueStore\KeyValueStoreInterface

File

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

Class

EntityIndex

Namespace

Drupal\multiversion\Entity\Index

Code

protected function keyValueStore($workspace_id = 0) {
  return $this->keyValueFactory
    ->get($this->collectionPrefix . $workspace_id);
}