You are here

UuidIndex.php in Multiversion 8

Same filename and directory in other branches
  1. 8.2 src/Entity/Index/UuidIndex.php

File

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

namespace Drupal\multiversion\Entity\Index;

use Drupal\Core\Entity\EntityInterface;
class UuidIndex extends EntityIndex implements UuidIndexInterface {

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

  /**
   * {@inheritdoc}
   */
  protected function buildKey(EntityInterface $entity) {
    return $entity
      ->uuid();
  }

}

Classes

Namesort descending Description
UuidIndex