$structure->add()
Adds a single object or an entire second collection to the current collection
$structure->add(Collection|StructureObject $object): Structure
Parameters
| Name | Type | Default |
|---|---|---|
| $objectrequired | Kirby\Cms\Collection<Kirby\Cms\StructureObject>orKirby\Cms\StructureObject |
no default value |
Return type
This method modifies the existing $structure object it is applied to and returns it again.
Parent class
Kirby\Cms\Structure
inherited from Kirby\Cms\Collection