You are here

public function ChainTaxRateResolver::addResolver in Commerce Core 8.2

Adds a resolver.

Parameters

\Drupal\commerce_tax\Resolver\TaxRateResolverInterface $resolver: The resolver.

Overrides ChainTaxRateResolverInterface::addResolver

File

modules/tax/src/Resolver/ChainTaxRateResolver.php, line 33

Class

ChainTaxRateResolver

Namespace

Drupal\commerce_tax\Resolver

Code

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