interface TaxRatePluginInterface in Ubercart 8.4
Defines an interface for TaxRate plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\uc_tax\TaxRatePluginInterface
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_taxView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 11 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 12 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 12 |
PluginFormInterface:: |
public | function | Form constructor. | 36 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |
TaxRatePluginInterface:: |
public | function | Returns the amount of tax for the order. | 1 |
TaxRatePluginInterface:: |
public | function | Returns a short description of this tax rate. | 1 |