You are here

public function PaymentListBuilder::load in Commerce Core 8.2

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

modules/payment/src/PaymentListBuilder.php, line 103

Class

PaymentListBuilder
Defines the list builder for payments.

Namespace

Drupal\commerce_payment

Code

public function load() {
  $this->order = $this->routeMatch
    ->getParameter('commerce_order');
  return $this->storage
    ->loadMultipleByOrder($this->order);
}