function EntityStorageBase::doLoadMultiple

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::doLoadMultiple()
  2. 10 core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::doLoadMultiple()
  3. 11.x core/lib/Drupal/Core/Entity/EntityStorageBase.php \Drupal\Core\Entity\EntityStorageBase::doLoadMultiple()

Performs storage-specific loading of entities.

Override this method to add custom functionality directly after loading. This is always called, while self::postLoad() is only called when there are actual results.

Parameters

array|null $ids: (optional) An array of entity IDs, or NULL to load all entities.

Return value

\Drupal\Core\Entity\EntityInterface[] Associative array of entities, keyed on the entity ID.

1 call to EntityStorageBase::doLoadMultiple()
EntityStorageBase::loadMultiple in core/lib/Drupal/Core/Entity/EntityStorageBase.php
4 methods override EntityStorageBase::doLoadMultiple()
ConfigEntityStorage::doLoadMultiple in core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php
ContentEntityNullStorage::doLoadMultiple in core/lib/Drupal/Core/Entity/ContentEntityNullStorage.php
KeyValueEntityStorage::doLoadMultiple in core/lib/Drupal/Core/Entity/KeyValueStore/KeyValueEntityStorage.php
SqlContentEntityStorage::doLoadMultiple in core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php

File

core/lib/Drupal/Core/Entity/EntityStorageBase.php, line 384

Class

EntityStorageBase
A base entity storage class.

Namespace

Drupal\Core\Entity

Code

protected abstract function doLoadMultiple(array $ids = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.