ChainStoreResolverInterface.php in Commerce Core 8.2
Namespace
Drupal\commerce_store\ResolverFile
modules/store/src/Resolver/ChainStoreResolverInterface.phpView source
<?php
namespace Drupal\commerce_store\Resolver;
/**
* 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.
*/
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();
}
Interfaces
Name | Description |
---|---|
ChainStoreResolverInterface | Runs the added resolvers one by one until one of them returns the store. |