You are here

public function ChainCheckoutFlowResolver::addResolver in Commerce Core 8.2

Adds a resolver.

Parameters

\Drupal\commerce_checkout\Resolver\CheckoutFlowResolverInterface $resolver: The resolver.

Overrides ChainCheckoutFlowResolverInterface::addResolver

File

modules/checkout/src/Resolver/ChainCheckoutFlowResolver.php, line 33

Class

ChainCheckoutFlowResolver
Default implementation of the chain checkout flow resolver.

Namespace

Drupal\commerce_checkout\Resolver

Code

public function addResolver(CheckoutFlowResolverInterface $resolver) {
  $this->resolvers[] = $resolver;
}