You are here

public static function FedEx::shippingType in Commerce FedEx 8

Gets the shipping type of the shipment.

Parameters

\Drupal\commerce_shipping\Entity\ShipmentInterface $shipment: The Shipment.

Return value

string A constant representing the shipment type

File

src/Plugin/Commerce/ShippingMethod/FedEx.php, line 1158

Class

FedEx
Provides the FedEx shipping method.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\ShippingMethod

Code

public static function shippingType(ShipmentInterface $shipment) {
  return static::isDomestic($shipment) ? FedEx::SHIPPING_TYPE_DOMESTIC : FedEx::SHIPPING_TYPE_INTERNATIONAL;
}