You are here

public function WishlistSession::getWishlistIds in Commerce Wishlist 8.3

Gets all wishlist ids from the session.

Return value

int[] A list of wishlist ids.

Overrides WishlistSessionInterface::getWishlistIds

File

src/WishlistSession.php, line 32

Class

WishlistSession
Default implementation of the wishlist session.

Namespace

Drupal\commerce_wishlist

Code

public function getWishlistIds() {
  return $this->session
    ->get('commerce_wishlists', []);
}