public function ModeratedNodeListBuilder::load in Drupal 9
Same name and namespace in other branches
- 8 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_moderationCode
public function load() {
$revision_ids = $this
->getEntityRevisionIds();
return $this->storage
->loadMultipleRevisions($revision_ids);
}