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