# $pricingRules->prepend()

> Prepends an element to the data array

- Source: `src/Cms/Collection.php#L311` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/Collection.php#L311>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$pricingRules->prepend(string|TValue ...$args): Kirby\Cms\Collection
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `...$args` | `string\|TValue` | `–` |

## Return type

`Kirby\Cms\Collection`

## Description

```php
$collection->prepend($object);
$collection->prepend('key', $object);
```

## Parent class

`Wagnerwagner\Merx\PricingRules` inherited from `Kirby\Cms\Collection`
