function StubEntityStorageBase::doLoadMultiple

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Entity/StubEntityStorageBase.php \Drupal\Tests\Core\Entity\StubEntityStorageBase::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.

Overrides EntityStorageBase::doLoadMultiple

File

core/tests/Drupal/Tests/Core/Entity/StubEntityStorageBase.php, line 27

Class

StubEntityStorageBase
A stub base entity storage for testing purposes.

Namespace

Drupal\Tests\Core\Entity

Code

protected function doLoadMultiple(?array $ids = NULL) : array {
  return [];
}

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