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