You are here

interface TaxTypeAwareInterface in Commerce Core 8.2

Defines the interface for resolvers that depend on the tax type.

The tax type is not passed to the resolver's resolve() method because the method's signature couldn't be modified in 2.x for backwards compatibility reasons.

Hierarchy

Expanded class hierarchy of TaxTypeAwareInterface

All classes that implement TaxTypeAwareInterface

See also

\Drupal\commerce_tax\Resolver\TaxTypeAwareTrait

1 file declares its use of TaxTypeAwareInterface
TaxRateResolver.php in modules/tax/tests/modules/commerce_tax_test/src/Resolver/TaxRateResolver.php

File

modules/tax/src/Resolver/TaxTypeAwareInterface.php, line 16

Namespace

Drupal\commerce_tax\Resolver
View source
interface TaxTypeAwareInterface {

  /**
   * Sets the tax type.
   *
   * @param \Drupal\commerce_tax\Entity\TaxTypeInterface $tax_type
   *   The tax type.
   *
   * @return $this
   */
  public function setTaxType(TaxTypeInterface $tax_type);

}

Members