You are here

public function StockServiceManager::getTransactionLocation in Commerce Stock 8

@todo code sniffer error here, can't have optional params first.

Overrides StockTransactionsInterface::getTransactionLocation

File

src/StockServiceManager.php, line 117

Class

StockServiceManager
The stock service manager.

Namespace

Drupal\commerce_stock

Code

public function getTransactionLocation(Context $context = NULL, PurchasableEntityInterface $entity, $quantity) {
  $stock_config = $this
    ->getService($entity)
    ->getConfiguration();
  return $stock_config
    ->getTransactionLocation($context, $entity, $quantity);
}