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