You are here

public function ChainTaxCodeResolver::addResolver in Drupal Commerce Connector for AvaTax 8

Adds a resolver.

Parameters

\Drupal\commerce_avatax\Resolver\TaxCodeResolverInterface $resolver: The resolver.

Overrides ChainTaxCodeResolverInterface::addResolver

File

src/Resolver/ChainTaxCodeResolver.php, line 32

Class

ChainTaxCodeResolver
Provides the chain tax code resolver.

Namespace

Drupal\commerce_avatax\Resolver

Code

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