public function ChainCountryResolverInterface::addResolver in Price 2.0.x
Same name and namespace in other branches
- 8 src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface::addResolver()
- 3.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface::addResolver()
- 2.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface::addResolver()
- 3.0.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface::addResolver()
Adds a resolver.
Parameters
\Drupal\price\Resolver\CountryResolverInterface $resolver: The resolver.
1 method overrides ChainCountryResolverInterface::addResolver()
- ChainCountryResolver::addResolver in src/
Resolver/ ChainCountryResolver.php - Adds a resolver.
File
- src/
Resolver/ ChainCountryResolverInterface.php, line 19
Class
- ChainCountryResolverInterface
- Runs the added resolvers one by one until one of them returns the country.
Namespace
Drupal\price\ResolverCode
public function addResolver(CountryResolverInterface $resolver);