Item
Whenever you're dealing with a list item in your template, you're actually working with a Item object.
Properties
Type: int|null
ID of the item.
Type: int|null
ID of the linked element.
Type: int|null
Site ID of the linked element.
Type: string|null
Display name of the linked element. ie \craft\elements\Entry would be Entry.
Type: craft\base\ElementInterface|null
The linked element.
Type: string|null
The Title of the linked element.
Type: int|null
ID of the list this item belongs to.
Type: verbb\wishlist\elements\ListElement|null
The list this item belongs to.
Type: array
Any additional options to store with an item.
Type: string
An MD5 hash of the options, used for comparing items uniqueness.
Methods
Returns: string|null
Returns the URL to add an item to a list.
Returns: string|null
Returns the URL to remove an item from a list.
Returns: string|null
Returns the URL to toggle an item in a list.
Returns: bool
Whether this item is in the list (default list or otherwise).