You are here

class RevisionIndex in Multiversion 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Index/RevisionIndex.php \Drupal\multiversion\Entity\Index\RevisionIndex

Hierarchy

Expanded class hierarchy of RevisionIndex

1 string reference to 'RevisionIndex'
multiversion.services.yml in ./multiversion.services.yml
multiversion.services.yml
1 service uses RevisionIndex
multiversion.entity_index.rev in ./multiversion.services.yml
Drupal\multiversion\Entity\Index\RevisionIndex

File

src/Entity/Index/RevisionIndex.php, line 7

Namespace

Drupal\multiversion\Entity\Index
View source
class RevisionIndex extends EntityIndex implements RevisionIndexInterface {

  /**
   * @var string
   */
  protected $collectionPrefix = 'multiversion.entity_index.rev.';

  /**
   * {@inheritdoc}
   */
  protected function buildKey(EntityInterface $entity) {
    return $entity
      ->uuid() . ':' . $entity->_rev->value;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
EntityIndex::$keyValueFactory protected property
EntityIndex::$workspaceId protected property
EntityIndex::$workspaceManager protected property
EntityIndex::add public function Overrides EntityIndexInterface::add
EntityIndex::addMultiple public function Overrides EntityIndexInterface::addMultiple
EntityIndex::buildValue protected function Helper method for building the value to be indexed.
EntityIndex::get public function Overrides EntityIndexInterface::get
EntityIndex::getMultiple public function Overrides EntityIndexInterface::getMultiple
EntityIndex::getWorkspaceId protected function Helper method for getting what workspace ID to query.
EntityIndex::keyValueStore protected function
EntityIndex::useWorkspace public function Overrides IndexInterface::useWorkspace
EntityIndex::__construct public function
RevisionIndex::$collectionPrefix protected property Overrides EntityIndex::$collectionPrefix
RevisionIndex::buildKey protected function Helper method for building the key to be indexed. Overrides EntityIndex::buildKey