Skip to content

Kirby 6.0.0

$languages->remove()

Removes an object

$languages->remove(string|Language $key): Languages

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Language no default value Key or object to remove

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