function EntityBase::loadMultiple
Same name in other branches
- 9 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::loadMultiple()
- 8.9.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::loadMultiple()
- 11.x core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::loadMultiple()
Overrides EntityInterface::loadMultiple
1 call to EntityBase::loadMultiple()
- Workflow::loadMultipleByType in core/
modules/ workflows/ src/ Entity/ Workflow.php - Loads all workflows of the provided type.
File
-
core/
lib/ Drupal/ Core/ Entity/ EntityBase.php, line 509
Class
- EntityBase
- Defines a base entity class.
Namespace
Drupal\Core\EntityCode
public static function loadMultiple(?array $ids = NULL) {
$entity_type_repository = \Drupal::service('entity_type.repository');
$entity_type_manager = \Drupal::entityTypeManager();
$storage = $entity_type_manager->getStorage($entity_type_repository->getEntityTypeFromClass(static::class));
return $storage->loadMultiple($ids);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.