You are here

public function Shipment::setShippingProfile in Commerce Shipping 8.2

Sets the shipping profile.

Parameters

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

Return value

$this

Overrides ShipmentInterface::setShippingProfile

File

src/Entity/Shipment.php, line 213

Class

Shipment
Defines the shipment entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setShippingProfile(ProfileInterface $profile) {
  $this
    ->set('shipping_profile', $profile);
  return $this;
}