public function EntityIndex::get in Multiversion 8
Same name and namespace in other branches
- 8.2 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
Namespace
Drupal\multiversion\Entity\IndexCode
public function get($key) {
$values = $this
->getMultiple([
$key,
]);
return isset($values[$key]) ? $values[$key] : [];
}