public function ChainStoreResolver::addResolver in Commerce Core 8.2
Adds a resolver.
Parameters
\Drupal\commerce_store\Resolver\StoreResolverInterface $resolver: The resolver.
Overrides ChainStoreResolverInterface::addResolver
File
- modules/
store/ src/ Resolver/ ChainStoreResolver.php, line 30
Class
- ChainStoreResolver
- Default implementation of the chain store resolver.
Namespace
Drupal\commerce_store\ResolverCode
public function addResolver(StoreResolverInterface $resolver) {
$this->resolvers[] = $resolver;
}