public function StockLocationStorageInterface::getTransactionLocation in Commerce Stock 8
Get the transaction location for the given product and context.
Parameters
\Drupal\commerce\Context $context: The context.
\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.
Return value
\Drupal\commerce_stock_local\Entity\StockLocation[] The enabled stock locations.
1 method overrides StockLocationStorageInterface::getTransactionLocation()
- StockLocationStorage::getTransactionLocation in modules/
local_storage/ src/ StockLocationStorage.php - Get the transaction location for the given product and context.
File
- modules/
local_storage/ src/ StockLocationStorageInterface.php, line 55
Class
- StockLocationStorageInterface
- Defines the interface for local stock location storage.
Namespace
Drupal\commerce_stock_localCode
public function getTransactionLocation(Context $context, PurchasableEntityInterface $entity);