You are here

public function Wishlist::isPublic in Commerce Wishlist 8.3

Gets whether the wishlist is public.

Return value

bool TRUE if the wishlist is public, FALSE otherwise.

Overrides WishlistInterface::isPublic

File

src/Entity/Wishlist.php, line 270

Class

Wishlist
Defines the wishlist entity class.

Namespace

Drupal\commerce_wishlist\Entity

Code

public function isPublic() {
  return (bool) $this
    ->get('is_public')->value;
}