You are here

public function ChainCountryResolverInterface::addResolver in Price 3.0.x

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

Code

public function addResolver(CountryResolverInterface $resolver);