You are here

public function ChainStoreResolver::__construct in Commerce Core 8.2

Constructs a new ChainStoreResolver object.

Parameters

\Drupal\commerce_store\Resolver\StoreResolverInterface[] $resolvers: The resolvers.

File

modules/store/src/Resolver/ChainStoreResolver.php, line 23

Class

ChainStoreResolver
Default implementation of the chain store resolver.

Namespace

Drupal\commerce_store\Resolver

Code

public function __construct(array $resolvers = []) {
  $this->resolvers = $resolvers;
}