public function PriceListItemListBuilder::__construct in Commerce Pricelist 8.2
Constructs a new PriceListItemListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity storage.
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.
Overrides EntityListBuilder::__construct
File
- src/
PriceListItemListBuilder.php, line 42
Class
- PriceListItemListBuilder
- Defines the list builder for price list items.
Namespace
Drupal\commerce_pricelistCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, RouteMatchInterface $route_match) {
$this->entityTypeManager = $entity_type_manager;
$this->routeMatch = $route_match;
parent::__construct($entity_type, $entity_type_manager
->getStorage('commerce_pricelist_item'));
}