CartShoppingListTransferServiceInterface
CartShoppingListTransferServiceInterface.php
:
14
Interface
Methods¶
addSelectedEntriesToCart()
¶
CartShoppingListTransferServiceInterface.php
:
29
Adds selected entries from a shopping list to the cart.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
| $entryIdentifiers | array<string|int, string> | - | - |
| $cart | CartInterface|null | null | - |
Return values
addShoppingListToCart()
¶
CartShoppingListTransferServiceInterface.php
:
19
Adds all entries from a shopping list to the cart.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $shoppingList | ShoppingListInterface | - | - |
| $cart | CartInterface|null | null | - |
Return values
moveCartToShoppingList()
¶
CartShoppingListTransferServiceInterface.php
:
41
Moves all cart entries to a shopping list (save for later).
|
|
|
If null, uses or creates the default shopping list.
After moving, all cart entries are removed from the cart.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $cart | CartInterface | - | - |
| $shoppingList | ShoppingListInterface|null | null | - |
Return values
moveSelectedCartEntriesToShoppingList()
¶
CartShoppingListTransferServiceInterface.php
:
54
Moves selected cart entries to a shopping list (save for later).
|
|
|
If null, uses or creates the default shopping list.
After moving, the selected cart entries are removed from the cart.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $cart | CartInterface | - | - |
| $entryIdentifiers | array<string|int, string> | - |
Cart entry identifiers to move |
| $shoppingList | ShoppingListInterface|null | null | - |