You are here

public function Wishlist::setPublic in Commerce Wishlist 8.3

Sets whether the wishlist is public.

Parameters

bool $public: Whether the wishlist is public.

Return value

$this

Overrides WishlistInterface::setPublic

File

src/Entity/Wishlist.php, line 277

Class

Wishlist
Defines the wishlist entity class.

Namespace

Drupal\commerce_wishlist\Entity

Code

public function setPublic($public) {
  $this
    ->set('is_public', (bool) $public);
  return $this;
}