You are here

public function ChainStoreResolverInterface::addResolver in Commerce Core 8.2

Adds a resolver.

Parameters

\Drupal\commerce_store\Resolver\StoreResolverInterface $resolver: The resolver.

1 method overrides ChainStoreResolverInterface::addResolver()
ChainStoreResolver::addResolver in modules/store/src/Resolver/ChainStoreResolver.php
Adds a resolver.

File

modules/store/src/Resolver/ChainStoreResolverInterface.php, line 19

Class

ChainStoreResolverInterface
Runs the added resolvers one by one until one of them returns the store.

Namespace

Drupal\commerce_store\Resolver

Code

public function addResolver(StoreResolverInterface $resolver);