You are here

interface PackageTypeManagerInterface in Commerce Shipping 8.2

Defines the interface for commerce_package_type plugin managers.

Hierarchy

Expanded class hierarchy of PackageTypeManagerInterface

All classes that implement PackageTypeManagerInterface

3 files declare their use of PackageTypeManagerInterface
FlatRate.php in src/Plugin/Commerce/ShippingMethod/FlatRate.php
ShipmentForm.php in src/Form/ShipmentForm.php
ShippingMethodBase.php in src/Plugin/Commerce/ShippingMethod/ShippingMethodBase.php

File

src/PackageTypeManagerInterface.php, line 10

Namespace

Drupal\commerce_shipping
View source
interface PackageTypeManagerInterface extends PluginManagerInterface {

  /**
   * Gets the definitions for the given shipping method plugin ID.
   *
   * @param string $shipping_method
   *   The shipping method plugin ID.
   *
   * @return array
   *   The definitions.
   */
  public function getDefinitionsByShippingMethod($shipping_method);

}

Members

Namesort descending Modifiers Type Description Overrides
DiscoveryInterface::getDefinition public function Gets a specific plugin definition. 4
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type. 3
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists. 2
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin. 7
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin. 4
PackageTypeManagerInterface::getDefinitionsByShippingMethod public function Gets the definitions for the given shipping method plugin ID. 1