public function ChainCountryResolver::addResolver in Price 3.0.x
Same name and namespace in other branches
- 8 src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
- 3.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
- 2.0.x src/Resolver/ChainCountryResolver.php \Drupal\price\Resolver\ChainCountryResolver::addResolver()
- 2.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\ResolverCode
public function addResolver(CountryResolverInterface $resolver) {
$this->resolvers[] = $resolver;
}