interface CurrentStoreInterface in Commerce Core 8.2
Holds a reference to the active store, resolved on demand.
Hierarchy
- interface \Drupal\commerce_store\CurrentStoreInterface
Expanded class hierarchy of CurrentStoreInterface
All classes that implement CurrentStoreInterface
10 files declare their use of CurrentStoreInterface
- AddToCartForm.php in modules/
cart/ src/ Form/ AddToCartForm.php - CartProvider.php in modules/
cart/ src/ CartProvider.php - CurrentStore.php in modules/
store/ src/ Plugin/ views/ argument_default/ CurrentStore.php - PaymentMethodFormBase.php in modules/
payment/ src/ PluginForm/ PaymentMethodFormBase.php - PriceCalculatedFormatter.php in modules/
price/ src/ Plugin/ Field/ FieldFormatter/ PriceCalculatedFormatter.php
File
- modules/
store/ src/ CurrentStoreInterface.php, line 8
Namespace
Drupal\commerce_storeView source
interface CurrentStoreInterface {
/**
* Gets the active store for the current request.
*
* @return \Drupal\commerce_store\Entity\StoreInterface
* The active store.
*/
public function getStore();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CurrentStoreInterface:: |
public | function | Gets the active store for the current request. | 1 |