public function ChainPriceResolver::__construct in Price 2.0.x
Constructs a new ChainBasePriceResolver object.
Parameters
\Drupal\price\Resolver\PriceResolverInterface[] $resolvers: The resolvers.
File
- src/
Resolver/ ChainPriceResolver.php, line 26
Class
- ChainPriceResolver
- Default implementation of the chain base price resolver.
Namespace
Drupal\price\ResolverCode
public function __construct(array $resolvers = []) {
$this->resolvers = $resolvers;
}