❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$collection->has($key)
Checks if an element is present in the collection by its key
since:
Kirby 2.3.0
$key
(string)
↑
Toolkit API overview
←
$collection->groupBy($field, $caseInsensitive = true)
→
$collection->indexOf($needle)
↓
Back to Toolkit API section
Top