You are here

public function EntityIndex::add in Multiversion 8

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

Parameters

\Drupal\Core\Entity\EntityInterface $entity:

Overrides EntityIndexInterface::add

File

src/Entity/Index/EntityIndex.php, line 77

Class

EntityIndex

Namespace

Drupal\multiversion\Entity\Index

Code

public function add(EntityInterface $entity) {
  $this
    ->addMultiple([
    $entity,
  ]);
}