List
Whenever you're dealing with a list in your template, you're actually working with a List object.
Properties
Type: int|null
ID of the list.
Type: string|null
A unique identifier for this list, often used in sharing.
Type: int|null
The List Type ID.
Type: int|null
If logged in, this will be the user ID of the owner for this list.
Type: string|null
If a guest, this will contain the unique session ID used to identify this guest.
Type: bool|null
Whether this list is marked as the default list for users.
Type: string|null
The title of this list.
Type: string|null
A record of the last known IP for the guest or user of this list.
Methods
Returns: array
Returns an Item query.
Returns: verbb\wishlist\elements\Item|null
Returns an Item object for the given element, and query params.
Whether the provided item is in this list.
Returns: string
Returns the URL to add an item to the list.
Returns: string
Returns the URL to remove an item from the list.
Returns: string
Returns the URL to toggle an item in the list.