You are here

public function Wishlist::getShippingProfile in Commerce Wishlist 8.3

Gets the shipping profile.

Return value

\Drupal\profile\Entity\ProfileInterface|null The shipping profile, or null.

Overrides WishlistInterface::getShippingProfile

File

src/Entity/Wishlist.php, line 172

Class

Wishlist
Defines the wishlist entity class.

Namespace

Drupal\commerce_wishlist\Entity

Code

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