You are here

public function LocalStockServiceConfig::__construct in Commerce Stock 8

Constructs the local stock service config.

Parameters

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

File

modules/local_storage/src/LocalStockServiceConfig.php, line 35

Class

LocalStockServiceConfig
The local stock service configuration class.

Namespace

Drupal\commerce_stock_local

Code

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