interface ChainCountryResolverInterface in Price 8
Same name and namespace in other branches
- 3.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface
- 2.0.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface
- 2.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface
- 3.0.x src/Resolver/ChainCountryResolverInterface.php \Drupal\price\Resolver\ChainCountryResolverInterface
Runs the added resolvers one by one until one of them returns the country.
Each resolver in the chain can be another chain, which is why this interface extends the country resolver one.
Hierarchy
- interface \Drupal\price\Resolver\CountryResolverInterface
- interface \Drupal\price\Resolver\ChainCountryResolverInterface
Expanded class hierarchy of ChainCountryResolverInterface
All classes that implement ChainCountryResolverInterface
1 file declares its use of ChainCountryResolverInterface
File
- src/
Resolver/ ChainCountryResolverInterface.php, line 11
Namespace
Drupal\price\ResolverView source
interface ChainCountryResolverInterface extends CountryResolverInterface {
/**
* Adds a resolver.
*
* @param \Drupal\price\Resolver\CountryResolverInterface $resolver
* The resolver.
*/
public function addResolver(CountryResolverInterface $resolver);
/**
* Gets all added resolvers.
*
* @return \Drupal\price\Resolver\CountryResolverInterface[]
* The resolvers.
*/
public function getResolvers();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ChainCountryResolverInterface:: |
public | function | Adds a resolver. | 1 |
ChainCountryResolverInterface:: |
public | function | Gets all added resolvers. | 1 |
CountryResolverInterface:: |
public | function | Resolves the country. | 2 |