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\EntityCode
public function setShippingProfile(ProfileInterface $profile) {
$this
->set('shipping_profile', $profile);
return $this;
}