You are here

public function CheckoutFlowResolverInterface::resolve in Commerce Core 8.2

Resolves the checkout flow.

Parameters

\Drupal\commerce_order\Entity\OrderInterface $order: The order that is being checked out.

Return value

\Drupal\commerce_checkout\Entity\CheckoutFlowInterface The checkout flow, if resolved. Otherwise NULL, indicating that the next resolver in the chain should be called.

2 methods override CheckoutFlowResolverInterface::resolve()
ChainCheckoutFlowResolver::resolve in modules/checkout/src/Resolver/ChainCheckoutFlowResolver.php
Resolves the checkout flow.
DefaultCheckoutFlowResolver::resolve in modules/checkout/src/Resolver/DefaultCheckoutFlowResolver.php
Resolves the checkout flow.

File

modules/checkout/src/Resolver/CheckoutFlowResolverInterface.php, line 22

Class

CheckoutFlowResolverInterface
Defines the interface for checkout flow resolvers.

Namespace

Drupal\commerce_checkout\Resolver

Code

public function resolve(OrderInterface $order);