You are here

public function Shipment::getShippingProfile in Commerce Shipping 8.2

Gets the shipping profile.

Return value

\Drupal\profile\Entity\ProfileInterface The shipping profile.

Overrides ShipmentInterface::getShippingProfile

File

src/Entity/Shipment.php, line 206

Class

Shipment
Defines the shipment entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function getShippingProfile() {
  return $this
    ->get('shipping_profile')->entity;
}