public function StockLocationStorageInterface::loadEnabled in Commerce Stock 8
Loads the enabled locations for the given Purchasable Entity.
Enabled variations are active stock locations that have been filtered through the FILTER_STOCK_LOCATIONS event.
Parameters
\Drupal\commerce\PurchasableEntityInterface $entity: The purchasable entity.
Return value
\Drupal\commerce_stock_local\Entity\StockLocation[] The enabled stock locations.
1 method overrides StockLocationStorageInterface::loadEnabled()
- StockLocationStorage::loadEnabled in modules/
local_storage/ src/ StockLocationStorage.php - Loads the enabled locations for the given Purchasable Entity.
File
- modules/
local_storage/ src/ StockLocationStorageInterface.php, line 26
Class
- StockLocationStorageInterface
- Defines the interface for local stock location storage.
Namespace
Drupal\commerce_stock_localCode
public function loadEnabled(PurchasableEntityInterface $entity);