public function EntityIndex::getMultiple in Multiversion 8.2
Same name and namespace in other branches
- 8 src/Entity/Index/EntityIndex.php \Drupal\multiversion\Entity\Index\EntityIndex::getMultiple()
Overrides EntityIndexInterface::getMultiple
See also
\Drupal\Core\State\State::getMultiple()
1 call to EntityIndex::getMultiple()
- EntityIndex::get in src/
Entity/ Index/ EntityIndex.php
File
- src/
Entity/ Index/ EntityIndex.php, line 62
Class
Namespace
Drupal\multiversion\Entity\IndexCode
public function getMultiple(array $keys) {
$workspace_id = $this
->getWorkspaceId();
$loaded_values = $this
->keyValueStore($workspace_id)
->getMultiple($keys);
if (count($keys) != count($loaded_values)) {
$loaded_values2 = $this
->keyValueStore()
->getMultiple($keys);
$loaded_values = array_merge($loaded_values, $loaded_values2);
}
return $loaded_values;
}