$pages->append()
Appends an element to the data array
$pages->append($args = null): Kirby\Cms\Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$args |
null |
Return type
Example
$collection = page('projects')->children()->limit(1);
foreach(page('projects')->children()->offset(1) as $key => $child) {
$collection->append($key, $child);
}
Inherited from
Kirby\Cms\Collection