public function ShipmentListBuilder::__construct in Commerce Shipping 8.2
Constructs a new ShipmentListBuilder 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.
Overrides EntityListBuilder::__construct
File
- src/
ShipmentListBuilder.php, line 49
Class
- ShipmentListBuilder
- Defines the list builder for shipments.
Namespace
Drupal\commerce_shippingCode
public function __construct(EntityTypeInterface $entity_type, EntityStorageInterface $storage, CurrencyFormatterInterface $currency_formatter, RouteMatchInterface $route_match) {
parent::__construct($entity_type, $storage);
$this->currencyFormatter = $currency_formatter;
$this->routeMatch = $route_match;
}