You are here

public function StockLocationStorageInterface::loadInContext in Commerce Stock 8

Loads the relevant locations for the given Purchasable Entity and context.

Relevant locations are active and available for fulfillment for the product and context provided.

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::loadInContext()
StockLocationStorage::loadInContext in modules/local_storage/src/StockLocationStorage.php
Loads the relevant locations for the given Purchasable Entity and context.

File

modules/local_storage/src/StockLocationStorageInterface.php, line 42

Class

StockLocationStorageInterface
Defines the interface for local stock location storage.

Namespace

Drupal\commerce_stock_local

Code

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