You are here

public function PaymentListBuilder::__construct in Commerce Core 8.2

Constructs a new PaymentListBuilder object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityStorageInterface $storage: The entity storage class.

\CommerceGuys\Intl\Formatter\CurrencyFormatterInterface $currency_formatter: The currency formatter.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.

Overrides EntityListBuilder::__construct

File

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

Class

PaymentListBuilder
Defines the list builder for payments.

Namespace

Drupal\commerce_payment

Code

public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrencyFormatterInterface $currency_formatter, RouteMatchInterface $route_match, DateFormatterInterface $date_formatter) {
  parent::__construct($entity_type, $storage);
  $this->currencyFormatter = $currency_formatter;
  $this->routeMatch = $route_match;
  $this->dateFormatter = $date_formatter;
}