interface ChainStoreResolverInterface in Commerce Core 8.2
Runs the added resolvers one by one until one of them returns the store.
Each resolver in the chain can be another chain, which is why this interface extends the store resolver one.
Hierarchy
- interface \Drupal\commerce_store\Resolver\StoreResolverInterface
- interface \Drupal\commerce_store\Resolver\ChainStoreResolverInterface
Expanded class hierarchy of ChainStoreResolverInterface
All classes that implement ChainStoreResolverInterface
1 file declares its use of ChainStoreResolverInterface
- CurrentStore.php in modules/
store/ src/ CurrentStore.php
File
- modules/
store/ src/ Resolver/ ChainStoreResolverInterface.php, line 11
Namespace
Drupal\commerce_store\ResolverView source
interface ChainStoreResolverInterface extends StoreResolverInterface {
/**
* Adds a resolver.
*
* @param \Drupal\commerce_store\Resolver\StoreResolverInterface $resolver
* The resolver.
*/
public function addResolver(StoreResolverInterface $resolver);
/**
* Gets all added resolvers.
*
* @return \Drupal\commerce_store\Resolver\StoreResolverInterface[]
* The resolvers.
*/
public function getResolvers();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChainStoreResolverInterface:: |
public | function | Adds a resolver. | 1 |
ChainStoreResolverInterface:: |
public | function | Gets all added resolvers. | 1 |
StoreResolverInterface:: |
public | function | Resolves the store. | 3 |