interface PackageTypeManagerInterface in Commerce Shipping 8.2
Defines the interface for commerce_package_type plugin managers.
Hierarchy
- interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
- interface \Drupal\commerce_shipping\PackageTypeManagerInterface
- interface \Drupal\Component\Plugin\PluginManagerInterface
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_shippingView 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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DiscoveryInterface:: |
public | function | Gets a specific plugin definition. | 4 |
DiscoveryInterface:: |
public | function | Gets the definition of all plugins for this type. | 3 |
DiscoveryInterface:: |
public | function | Indicates if a specific plugin definition exists. | 2 |
FactoryInterface:: |
public | function | Creates a pre-configured instance of a plugin. | 7 |
MapperInterface:: |
public | function | Gets a preconfigured instance of a plugin. | 4 |
PackageTypeManagerInterface:: |
public | function | Gets the definitions for the given shipping method plugin ID. | 1 |