public static function Entity::loadMultiple in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Entity/Entity.php \Drupal\Core\Entity\Entity::loadMultiple()
Return value
static[] An array of entity objects indexed by their IDs. Returns an empty array if no matching entities are found.
Overrides EntityInterface::loadMultiple
File
- core/
lib/ Drupal/ Core/ Entity/ Entity.php, line 516 - Contains \Drupal\Core\Entity\Entity.
Class
- Entity
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public static function loadMultiple(array $ids = NULL) {
$entity_manager = \Drupal::entityManager();
return $entity_manager
->getStorage($entity_manager
->getEntityTypeFromClass(get_called_class()))
->loadMultiple($ids);
}