Skip to content

Kirby 5.0.2

$languages->remove()

Removes an object

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

Parameters

Name Type Default Description
$keyrequired stringorKirby\Cms\Language no default value the name of the key

Return type

Kirby\Cms\Languages

This method does not modify the existing $languages object but returns a new object with the changes applied. Learn more →

Parent class

Kirby\Cms\Languages inherited from Kirby\Cms\Collection