You are here

public function CheckoutEventSubscriber::__construct in Commerce Core 8.2

Constructs a new CheckoutEventSubscriber object.

Parameters

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

File

modules/log/src/EventSubscriber/CheckoutEventSubscriber.php, line 25

Class

CheckoutEventSubscriber

Namespace

Drupal\commerce_log\EventSubscriber

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager) {
  $this->logStorage = $entity_type_manager
    ->getStorage('commerce_log');
}