You are here

RevisionIndex.php in Multiversion 8.2

Same filename and directory in other branches
  1. 8 src/Entity/Index/RevisionIndex.php

File

src/Entity/Index/RevisionIndex.php
View source
<?php

namespace Drupal\multiversion\Entity\Index;

use Drupal\Core\Entity\EntityInterface;
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;
  }

}

Classes

Namesort descending Description
RevisionIndex