public function OrderListBuilder::__construct in Commerce Core 8.2
Constructs a new OrderListBuilder object.
Parameters
\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The date formatter.
Overrides EntityListBuilder::__construct
File
- modules/
order/ src/ OrderListBuilder.php, line 35
Class
- OrderListBuilder
- Defines the list builder for orders.
Namespace
Drupal\commerce_orderCode
public function __construct(EntityTypeInterface $entity_type, EntityTypeManagerInterface $entity_type_manager, DateFormatterInterface $date_formatter) {
parent::__construct($entity_type, $entity_type_manager
->getStorage($entity_type
->id()));
$this->dateFormatter = $date_formatter;
}