WireArray::insertBefore() - ProcessWire API

WireArray::insertBefore()

Insert an item before an existing item

Example

$items->insertBefore($newItem, $existingItem); 

Usage

$wireArray-&gtinsertBefore($item, $existingItem);

Arguments

Return value

$this

Object instance it was called from (method supports fluent interface).


WireArray methods and properties

API reference based on ProcessWire core version 3.0.267