You are here

public function TaxRate::getPlugin in Ubercart 8.4

Returns the plugin instance.

Return value

\Drupal\uc_tax\TaxRatePluginInterface The plugin instance for this tax rate.

Overrides TaxRateInterface::getPlugin

File

uc_tax/src/Entity/TaxRate.php, line 140

Class

TaxRate
Defines a tax rate configuration entity.

Namespace

Drupal\uc_tax\Entity

Code

public function getPlugin() {
  return \Drupal::service('plugin.manager.uc_tax.rate')
    ->createInstance($this->plugin, $this->settings);
}