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