You are here

public function WishlistManagerInterface::merge in Commerce Wishlist 8.3

Merges the source wishlist into the target wishlist.

Parameters

\Drupal\commerce_wishlist\Entity\WishlistInterface $source: The source wishlist to merge.

\Drupal\commerce_wishlist\Entity\WishlistInterface $target: The target wishlist.

bool $save: Save wishlist.

Return value

\Drupal\commerce_wishlist\Entity\WishlistInterface The saved or modified wishlist.

1 method overrides WishlistManagerInterface::merge()
WishlistManager::merge in src/WishlistManager.php
Merges the source wishlist into the target wishlist.

File

src/WishlistManagerInterface.php, line 57

Class

WishlistManagerInterface
Manages the wishlist and its wishlist items.

Namespace

Drupal\commerce_wishlist

Code

public function merge(WishlistInterface $source, WishlistInterface $target, $save = TRUE);