Merx

$productList->prepend()

Prepends an element to the data array

$productList->prepend(string|TValue ...$args): Kirby\Toolkit\Collection

Parameters

Name Type Default
...$args string or TValue -

Return type

Kirby\Toolkit\Collection

Description

$collection->prepend('key', $value);
$collection->prepend($value);

Parent class

Wagnerwagner\Merx\ProductList inherited from Kirby\Toolkit\Collection