interface ShippingQuotePluginInterface in Ubercart 8.4
Defines an interface for shipping quote plugins.
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Core\Plugin\PluginFormInterface
- interface \Drupal\uc_quote\ShippingQuotePluginInterface
Expanded class hierarchy of ShippingQuotePluginInterface
All classes that implement ShippingQuotePluginInterface
1 file declares its use of ShippingQuotePluginInterface
- ShippingQuotePluginManager.php in shipping/
uc_quote/ src/ Plugin/ ShippingQuotePluginManager.php
File
- shipping/
uc_quote/ src/ ShippingQuotePluginInterface.php, line 13
Namespace
Drupal\uc_quoteView source
interface ShippingQuotePluginInterface extends PluginInspectionInterface, ConfigurableInterface, PluginFormInterface {
/**
* Returns a description of this shipping quote.
*
* @return string
* The description.
*/
public function getDescription();
/**
* Returns the shipping quote method label with logo.
*
* @param string $label
* The shipping quote method label to be styled.
*
* @return array
* A render array containing the formatted shipping quote method label.
*/
public function getDisplayLabel($label);
/**
* Retrieves shipping quotes for this method.
*
* @param \Drupal\uc_order\OrderInterface $order
* The order to retrieve the quotes for.
*
* @return array
* An array of shipping quotes.
*/
public function getQuotes(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 |
ShippingQuotePluginInterface:: |
public | function | Returns a description of this shipping quote. | 5 |
ShippingQuotePluginInterface:: |
public | function | Returns the shipping quote method label with logo. | 1 |
ShippingQuotePluginInterface:: |
public | function | Retrieves shipping quotes for this method. | 5 |