You are here

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

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\Resolver
View 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

Namesort descending Modifiers Type Description Overrides
ChainCheckoutFlowResolverInterface::addResolver public function Adds a resolver. 1
ChainCheckoutFlowResolverInterface::getResolvers public function Gets all added resolvers. 1
CheckoutFlowResolverInterface::resolve public function Resolves the checkout flow. 2