$languages->groupBy()
Groups the items by a given field. Returns a collection with an item for each group and a collection for each group.
$languages->groupBy(string $field, bool $i = true): Kirby\Cms\Collection
Parameters
Name | Type | Default | Description |
---|---|---|---|
$field |
string |
– | |
$i |
bool |
true |
Ignore upper/lowercase for group names |
Return type
Inherited from
Kirby\Cms\Collection