Skip to content

Kirby 5.0.4

$languages->update()

Updates an object in the collection

$languages->update(object|string $key, $object = null): Kirby\Cms\Languages

Parameters

Name Type Default
$keyrequired objectorstring no default value
$object mixed null

Return type

Kirby\Cms\Languages

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