You are here

public function ChainLocaleResolver::addResolver in Price 3.0.x

Same name and namespace in other branches
  1. 8 src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
  2. 3.x src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
  3. 2.0.x src/Resolver/ChainLocaleResolver.php \Drupal\price\Resolver\ChainLocaleResolver::addResolver()
  4. 2.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\Resolver

Code

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