You are here

public function ChainPriceResolver::addResolver in Price 2.0.x

Adds a resolver.

Parameters

\Drupal\price\Resolver\PriceResolverInterface $resolver: The resolver.

Overrides ChainPriceResolverInterface::addResolver

File

src/Resolver/ChainPriceResolver.php, line 33

Class

ChainPriceResolver
Default implementation of the chain base price resolver.

Namespace

Drupal\price\Resolver

Code

public function addResolver(PriceResolverInterface $resolver) {
  $this->resolvers[] = $resolver;
}