You are here

interface SupportsTrackingInterface in Commerce Shipping 8.2

Defines the interface for shipping methods which support tracking.

Hierarchy

Expanded class hierarchy of SupportsTrackingInterface

All classes that implement SupportsTrackingInterface

2 files declare their use of SupportsTrackingInterface
Test.php in tests/modules/commerce_shipping_test/src/Plugin/Commerce/ShippingMethod/Test.php
TrackingLinkFormatter.php in src/Plugin/Field/FieldFormatter/TrackingLinkFormatter.php

File

src/Plugin/Commerce/ShippingMethod/SupportsTrackingInterface.php, line 10

Namespace

Drupal\commerce_shipping\Plugin\Commerce\ShippingMethod
View source
interface SupportsTrackingInterface {

  /**
   * Gets the tracking url for the given shipment.
   *
   * @param \Drupal\commerce_shipping\Entity\ShipmentInterface $shipment
   *   The shipment.
   *
   * @return \Drupal\core\Url|null
   *   The tracking URL, or NULL if not available yet.
   */
  public function getTrackingUrl(ShipmentInterface $shipment);

}

Members

Namesort descending Modifiers Type Description Overrides
SupportsTrackingInterface::getTrackingUrl public function Gets the tracking url for the given shipment. 1