You are here

interface ShippingQuotePluginInterface in Ubercart 8.4

Defines an interface for shipping quote plugins.

Hierarchy

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_quote
View 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

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
ShippingQuotePluginInterface::getDescription public function Returns a description of this shipping quote. 5
ShippingQuotePluginInterface::getDisplayLabel public function Returns the shipping quote method label with logo. 1
ShippingQuotePluginInterface::getQuotes public function Retrieves shipping quotes for this method. 5