You are here

protected function SequenceIndex::sortedSetStore in Multiversion 8

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

Parameters

$workspace_id:

Return value

\Drupal\key_value\KeyValueStore\KeyValueStoreSortedSetInterface

File

src/Entity/Index/SequenceIndex.php, line 94

Class

SequenceIndex

Namespace

Drupal\multiversion\Entity\Index

Code

protected function sortedSetStore($workspace_id = null) {
  if (!$workspace_id) {
    $workspace_id = $this->workspaceId ?: $this->workspaceManager
      ->getActiveWorkspaceId();
  }
  return $this->sortedSetFactory
    ->get($this->collectionPrefix . $workspace_id);
}