$cart->prepend()
Prepends an element to the data array
$cart->prepend(string|TValue ...$args): Kirby\Toolkit\Collection
Parameters
| Name | Type | Default |
|---|---|---|
...$args |
string or TValue |
- |
Return type
Description
$collection->prepend('key', $value);
$collection->prepend($value);
Parent class
Wagnerwagner\Merx\Cart inherited from Kirby\Toolkit\Collection