You are here

public function TaxRate::isDefault in Commerce Core 8.2

Gets whether the tax rate is the default for its tax type.

When resolving the tax rate for a specific tax type, the default tax rate is returned if no other resolver provides a more applicable one.

Return value

bool TRUE if this is the default tax rate, FALSE otherwise.

File

modules/tax/src/TaxRate.php, line 151

Class

TaxRate
Represents a tax rate.

Namespace

Drupal\commerce_tax

Code

public function isDefault() {
  return !empty($this->default);
}