StoreStorageInterface.php in Commerce Core 8.2
Namespace
Drupal\commerce_storeFile
modules/store/src/StoreStorageInterface.phpView source
<?php
namespace Drupal\commerce_store;
use Drupal\commerce_store\Entity\StoreInterface;
use Drupal\Core\Entity\ContentEntityStorageInterface;
/**
* Defines the interface for store storage.
*/
interface StoreStorageInterface extends ContentEntityStorageInterface {
/**
* Loads the default store.
*
* @return \Drupal\commerce_store\Entity\StoreInterface|null
* The default store, if known.
*/
public function loadDefault();
/**
* Marks the provided store as the default.
*
* @param \Drupal\commerce_store\Entity\StoreInterface $store
* The new default store.
*
* @deprecated in commerce:8.x-2.16 and is removed from commerce:3.x.
*/
public function markAsDefault(StoreInterface $store);
}
Interfaces
Name | Description |
---|---|
StoreStorageInterface | Defines the interface for store storage. |