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
- interface \Drupal\commerce_tax\Resolver\TaxTypeAwareInterface
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\ResolverView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TaxTypeAwareInterface:: |
public | function | Sets the tax type. |