WireArray::insertAfter()
Insert an item after an existing item
Example
$items->insertAfter($newItem, $existingItem);
Usage
$wireArray->insertAfter($item, $existingItem);
Arguments
Name | Type(s) | Description |
---|---|---|
$item | Wire string int | Item you want to insert |
$existingItem | Wire string int | Item already present that you want to insert after |
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.251