You are here

public function ChainLocaleResolverInterface::addResolver in Price 2.0.x

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

Code

public function addResolver(LocaleResolverInterface $resolver);