You are here

protected function WishlistController::getDefaultWishlistType in Commerce Wishlist 8.3

Gets the default wishlist type.

2 calls to WishlistController::getDefaultWishlistType()
WishlistController::userPage in src/Controller/WishlistController.php
Builds the user wishlist page.
WishlistController::wishlistPage in src/Controller/WishlistController.php
Builds the wishlist page.

File

src/Controller/WishlistController.php, line 204

Class

WishlistController
Provides the wishlist pages.

Namespace

Drupal\commerce_wishlist\Controller

Code

protected function getDefaultWishlistType() {
  return $this->configFactory
    ->get('commerce_wishlist.settings')
    ->get('default_type');
}