$pages->add()
Adds a single page or an entire second collection to the current collection
Parameters
Name | Type | Default |
---|---|---|
$object * | Kirby\Cms\Pages |Kirby\Cms\Page |string |
– |
Return type
This method does not modify the existing $pages
object but returns a new object with the changes applied. Learn more →
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
When no Page or Pages object or an ID of an existing page is passed |