You are here

public function Wishlist::setShippingProfile in Commerce Wishlist 8.3

Sets the shipping profile.

Parameters

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

Return value

$this

Overrides WishlistInterface::setShippingProfile

File

src/Entity/Wishlist.php, line 179

Class

Wishlist
Defines the wishlist entity class.

Namespace

Drupal\commerce_wishlist\Entity

Code

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