function EntityListBuilderInterface::load

Same name in other branches
  1. 9 core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php \Drupal\Core\Entity\EntityListBuilderInterface::load()
  2. 8.9.x core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php \Drupal\Core\Entity\EntityListBuilderInterface::load()
  3. 10 core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php \Drupal\Core\Entity\EntityListBuilderInterface::load()

Loads entities of this type from storage for listing.

This allows the implementation to manipulate the listing, like filtering or sorting the loaded entities.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entities implementing \Drupal\Core\Entity\EntityInterface indexed by their IDs. Returns an empty array if no matching entities are found.

1 method overrides EntityListBuilderInterface::load()
EntityListBuilder::load in core/lib/Drupal/Core/Entity/EntityListBuilder.php
Loads entities of this type from storage for listing.

File

core/lib/Drupal/Core/Entity/EntityListBuilderInterface.php, line 29

Class

EntityListBuilderInterface
Defines an interface to build entity listings.

Namespace

Drupal\Core\Entity

Code

public function load();

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