$languages->append()
Appends an element to the data array
$languages->append(string|Kirby\Cms\Language ...$args): Kirby\Cms\Languages
Parameters
Name | Type | Default |
---|---|---|
...$args | string orKirby\Cms\Language |
no default value |
Return type
This method modifies the existing $languages
object it is applied to and returns it again.
Parent class
Kirby\Cms\Languages
inherited from Kirby\Cms\Collection
Examples
$collection->append($object);
$collection->append('key', $object);