You are here

public function StockServiceManager::addService in Commerce Stock 8

Adds a Stock service.

Parameters

\Drupal\commerce_stock\StockServiceInterface $stock_service: The stock service.

Overrides StockServiceManagerInterface::addService

File

src/StockServiceManager.php, line 71

Class

StockServiceManager
The stock service manager.

Namespace

Drupal\commerce_stock

Code

public function addService(StockServiceInterface $stock_service) {
  $this->stockServices[$stock_service
    ->getId()] = $stock_service;
}