public function SupportsTrackingInterface::getTrackingUrl in Commerce Shipping 8.2
Gets the tracking url for the given shipment.
Parameters
\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The shipment.
Return value
\Drupal\core\Url|null The tracking URL, or NULL if not available yet.
1 method overrides SupportsTrackingInterface::getTrackingUrl()
- Test::getTrackingUrl in tests/
modules/ commerce_shipping_test/ src/ Plugin/ Commerce/ ShippingMethod/ Test.php - Gets the tracking url for the given shipment.
File
- src/
Plugin/ Commerce/ ShippingMethod/ SupportsTrackingInterface.php, line 21
Class
- SupportsTrackingInterface
- Defines the interface for shipping methods which support tracking.
Namespace
Drupal\commerce_shipping\Plugin\Commerce\ShippingMethodCode
public function getTrackingUrl(ShipmentInterface $shipment);