Prepend an item to the beginning of the WireArray.
Example
// Add item to beginning
$items->prepend($item);
Usage
$wireArray->prepend($item);
Arguments
Name | Type(s) | Description |
---|---|---|
item | Wire, WireArray, mixed | Item to prepend. |
Return value
$this
This instance.
Exceptions
Method can throw exceptions on error:
WireException
See Also
WireArray methods and properties
API reference based on ProcessWire core version 3.0.236