public function ChainLocaleResolver::addResolver in Price 2.x
Same name and namespace in other branches
- 8 src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
- 3.x src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
- 2.0.x src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
- 3.0.x src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
Adds a resolver.
Parameters
\Drupal\price\Resolver\LocaleResolverInterface $resolver: The resolver.
Overrides ChainLocaleResolverInterface::addResolver
File
- src/
Resolver/ ChainLocaleResolver.php, line 30
Class
- ChainLocaleResolver
- Default implementation of the chain locale resolver.
Namespace
Drupal\price\ResolverCode
public function addResolver(LocaleResolverInterface $resolver) {
$this->resolvers[] = $resolver;
}