You are here

interface TaxRatePluginInterface in Ubercart 8.4

Defines an interface for TaxRate plugins.

Hierarchy

Expanded class hierarchy of TaxRatePluginInterface

All classes that implement TaxRatePluginInterface

1 file declares its use of TaxRatePluginInterface
TaxRatePluginManager.php in uc_tax/src/Plugin/TaxRatePluginManager.php

File

uc_tax/src/TaxRatePluginInterface.php, line 13

Namespace

Drupal\uc_tax
View source
interface TaxRatePluginInterface extends PluginInspectionInterface, ConfigurableInterface, PluginFormInterface {

  /**
   * Returns a short description of this tax rate.
   *
   * @return string
   *   The description.
   */
  public function getSummary();

  /**
   * Returns the amount of tax for the order.
   *
   * @param \Drupal\uc_order\OrderInterface $order
   *   The order that is being processed.
   *
   * @return \Drupal\uc_tax\TaxLineItem
   */
  public function calculateTax(OrderInterface $order);

}

Members

Namesort descending Modifiers Type Description Overrides
ConfigurableInterface::defaultConfiguration public function Gets default configuration for this plugin. 11
ConfigurableInterface::getConfiguration public function Gets this plugin's configuration. 12
ConfigurableInterface::setConfiguration public function Sets the configuration for this plugin instance. 12
PluginFormInterface::buildConfigurationForm public function Form constructor. 36
PluginFormInterface::submitConfigurationForm public function Form submission handler. 32
PluginFormInterface::validateConfigurationForm public function Form validation handler. 18
PluginInspectionInterface::getPluginDefinition public function Gets the definition of the plugin implementation. 4
PluginInspectionInterface::getPluginId public function Gets the plugin_id of the plugin instance. 2
TaxRatePluginInterface::calculateTax public function Returns the amount of tax for the order. 1
TaxRatePluginInterface::getSummary public function Returns a short description of this tax rate. 1