public function ChainPriceResolverInterface::addResolver in Commerce Core 8.2
Adds a resolver.
Parameters
\Drupal\commerce_price\Resolver\PriceResolverInterface $resolver: The resolver.
1 method overrides ChainPriceResolverInterface::addResolver()
- ChainPriceResolver::addResolver in modules/
price/ src/ Resolver/ ChainPriceResolver.php - Adds a resolver.
File
- modules/
price/ src/ Resolver/ ChainPriceResolverInterface.php, line 19
Class
- ChainPriceResolverInterface
- Runs the added resolvers one by one until one of them returns the price.
Namespace
Drupal\commerce_price\ResolverCode
public function addResolver(PriceResolverInterface $resolver);