You are here

EntityIndexInterface.php in Multiversion 8

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

File

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

namespace Drupal\multiversion\Entity\Index;

use Drupal\Core\Entity\EntityInterface;
interface EntityIndexInterface extends IndexInterface {

  /**
   * @param string $key
   *
   * @return array
   */
  public function get($key);

  /**
   * @param array $keys
   *
   * @return array
   */
  public function getMultiple(array $keys);

  /**
   * @param \Drupal\Core\Entity\EntityInterface $entity
   */
  public function add(EntityInterface $entity);

  /**
   * @param array $entities
   */
  public function addMultiple(array $entities);

}

Interfaces