You are here

public function StockServiceConfigInterface::getAvailabilityLocations in Commerce Stock 8

Get locations holding stock.

The locations should be filtered for the provided context and purchasable entity.

Parameters

\Drupal\commerce\Context $context: The context containing the customer & store.

\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.

Return value

\Drupal\commerce_stock\StockLocationInterface[] List of relevant locations.

2 methods override StockServiceConfigInterface::getAvailabilityLocations()
LocalStockServiceConfig::getAvailabilityLocations in modules/local_storage/src/LocalStockServiceConfig.php
Get locations holding stock.
StockServiceConfig::getAvailabilityLocations in src/StockServiceConfig.php
Get locations holding stock.

File

src/StockServiceConfigInterface.php, line 46

Class

StockServiceConfigInterface
The stock service configuration interface.

Namespace

Drupal\commerce_stock

Code

public function getAvailabilityLocations(Context $context, PurchasableEntityInterface $entity);