public function ConfigEntityStorageDecorator::loadMultiple in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadMultiple()
- 8.2 webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadMultiple()
- 4.x webprofiler/src/Entity/Decorators/Config/ConfigEntityStorageDecorator.php \Drupal\webprofiler\Entity\Decorators\Config\ConfigEntityStorageDecorator::loadMultiple()
Loads one or more entities.
Parameters
$ids: An array of entity IDs, or NULL to load all entities.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.
Overrides EntityStorageInterface::loadMultiple
File
- webprofiler/
src/ Entity/ Decorators/ Config/ ConfigEntityStorageDecorator.php, line 39
Class
- ConfigEntityStorageDecorator
- Class ConfigEntityStorageDecorator
Namespace
Drupal\webprofiler\Entity\Decorators\ConfigCode
public function loadMultiple(array $ids = NULL) {
$entities = $this
->getOriginalObject()
->loadMultiple($ids);
$this->entities = array_merge($this->entities, $entities);
return $entities;
}