You are here

public function ChainOrderTypeResolverInterface::addResolver in Commerce Core 8.2

Adds a resolver.

Parameters

\Drupal\commerce_order\Resolver\OrderTypeResolverInterface $resolver: The resolver.

1 method overrides ChainOrderTypeResolverInterface::addResolver()
ChainOrderTypeResolver::addResolver in modules/order/src/Resolver/ChainOrderTypeResolver.php
Adds a resolver.

File

modules/order/src/Resolver/ChainOrderTypeResolverInterface.php, line 19

Class

ChainOrderTypeResolverInterface
Runs the added resolvers one by one until one of them returns the order type.

Namespace

Drupal\commerce_order\Resolver

Code

public function addResolver(OrderTypeResolverInterface $resolver);