You are here

public function ChainPriceResolver::__construct in Commerce Core 8.2

Constructs a new ChainBasePriceResolver object.

Parameters

\Drupal\commerce_price\Resolver\PriceResolverInterface[] $resolvers: The resolvers.

File

modules/price/src/Resolver/ChainPriceResolver.php, line 26

Class

ChainPriceResolver
Default implementation of the chain base price resolver.

Namespace

Drupal\commerce_price\Resolver

Code

public function __construct(array $resolvers = []) {
  $this->resolvers = $resolvers;
}