Skip to content

Kirby 6.0.0

$language->isLast()

Checks if the item is the last in the collection

$language->isLast(Languages|null $collection = null): bool

Parameters

Name Type Default
$collection Kirby\Cms\Languagesornull null

Return type

bool

Parent class

Kirby\Cms\Language