You are here

public function ModeratedNodeListBuilder::load in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/content_moderation/src/ModeratedNodeListBuilder.php \Drupal\content_moderation\ModeratedNodeListBuilder::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.

Overrides EntityListBuilder::load

File

core/modules/content_moderation/src/ModeratedNodeListBuilder.php, line 70

Class

ModeratedNodeListBuilder
Defines a class to build a listing of moderated node entities.

Namespace

Drupal\content_moderation

Code

public function load() {
  $revision_ids = $this
    ->getEntityRevisionIds();
  return $this->storage
    ->loadMultipleRevisions($revision_ids);
}