$language->id() The id is required for collections to work properly. The code is used as id kirby/src/Cms/Language.php#L331 $language->id(): string Return type string Parent class Kirby\Cms\Language