You are here

interface CurrentStoreInterface in Commerce Core 8.2

Holds a reference to the active store, resolved on demand.

Hierarchy

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

... See full list

File

modules/store/src/CurrentStoreInterface.php, line 8

Namespace

Drupal\commerce_store
View source
interface CurrentStoreInterface {

  /**
   * Gets the active store for the current request.
   *
   * @return \Drupal\commerce_store\Entity\StoreInterface
   *   The active store.
   */
  public function getStore();

}

Members

Namesort descending Modifiers Type Description Overrides
CurrentStoreInterface::getStore public function Gets the active store for the current request. 1