interface EntityStoresInterface in Commerce Core 8.2
Defines a common interface for entities that belong to one or more stores.
Hierarchy
- interface \Drupal\commerce_store\Entity\EntityStoresInterface
Expanded class hierarchy of EntityStoresInterface
All classes that implement EntityStoresInterface
2 files declare their use of EntityStoresInterface
- ProductInterface.php in modules/
product/ src/ Entity/ ProductInterface.php - PromotionInterface.php in modules/
promotion/ src/ Entity/ PromotionInterface.php
File
- modules/
store/ src/ Entity/ EntityStoresInterface.php, line 8
Namespace
Drupal\commerce_store\EntityView source
interface EntityStoresInterface {
/**
* Gets the stores.
*
* @return \Drupal\commerce_store\Entity\StoreInterface[]
* The stores.
*/
public function getStores();
/**
* Sets the stores.
*
* @param \Drupal\commerce_store\Entity\StoreInterface[] $stores
* The stores.
*
* @return $this
*/
public function setStores(array $stores);
/**
* Gets the store IDs.
*
* @return int[]
* The store IDs.
*/
public function getStoreIds();
/**
* Sets the store IDs.
*
* @param int[] $store_ids
* The store IDs.
*
* @return $this
*/
public function setStoreIds(array $store_ids);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
EntityStoresInterface:: |
public | function | Gets the store IDs. | 2 |
EntityStoresInterface:: |
public | function | Gets the stores. | 2 |
EntityStoresInterface:: |
public | function | Sets the store IDs. | 2 |
EntityStoresInterface:: |
public | function | Sets the stores. | 2 |