You are here

public function ChainCountryResolver::addResolver in Price 2.0.x

Same name and namespace in other branches
  1. 8 src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
  2. 3.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
  3. 2.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
  4. 3.0.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()

Adds a resolver.

Parameters

\Drupal\price\Resolver\CountryResolverInterface $resolver: The resolver.

Overrides ChainCountryResolverInterface::addResolver

File

src/Resolver/ChainCountryResolver.php, line 30

Class

ChainCountryResolver
Default implementation of the chain country resolver.

Namespace

Drupal\price\Resolver

Code

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