You are here

public function ChainPriceResolverInterface::addResolver in Price 2.0.x

Adds a resolver.

Parameters

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

1 method overrides ChainPriceResolverInterface::addResolver()
ChainPriceResolver::addResolver in src/Resolver/ChainPriceResolver.php
Adds a resolver.

File

src/Resolver/ChainPriceResolverInterface.php, line 19

Class

ChainPriceResolverInterface
Runs the added resolvers one by one until one of them returns the price.

Namespace

Drupal\price\Resolver

Code

public function addResolver(PriceResolverInterface $resolver);