You are here

public function OrderNumberSubscriber::__construct in Commerce Core 8.2

Constructs a new OrderNumberSubscriber object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

File

modules/order/src/EventSubscriber/OrderNumberSubscriber.php, line 33

Class

OrderNumberSubscriber
Generates the order number for placed orders.

Namespace

Drupal\commerce_order\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->entityTypeManager = $entity_type_manager;
}