$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