You are here

public function Shipment::getShippingService in Commerce Shipping 8.2

Gets the shipping service.

Return value

string|null The shipping service, or NULL if unknown.

Overrides ShipmentInterface::getShippingService

File

src/Entity/Shipment.php, line 191

Class

Shipment
Defines the shipment entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function getShippingService() {
  return $this
    ->get('shipping_service')->value;
}