You are here

public function TaxType::getPlugin in Commerce Core 8.2

Gets the tax type plugin.

Return value

\Drupal\commerce_tax\Plugin\Commerce\TaxType\TaxTypeInterface The tax type plugin.

Overrides TaxTypeInterface::getPlugin

File

modules/tax/src/Entity/TaxType.php, line 97

Class

TaxType
Defines the tax type entity class.

Namespace

Drupal\commerce_tax\Entity

Code

public function getPlugin() {
  return $this
    ->getPluginCollection()
    ->get($this->plugin);
}