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