You are here

public function EntityIndex::get in Multiversion 8.2

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

Parameters

string $key:

Return value

array

Overrides EntityIndexInterface::get

File

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

Class

EntityIndex

Namespace

Drupal\multiversion\Entity\Index

Code

public function get($key) {
  $values = $this
    ->getMultiple([
    $key,
  ]);
  return isset($values[$key]) ? $values[$key] : [];
}