$layoutcolumns->group()
Groups the items by a given field or callback. Returns a collection with an item for each group and a collection for each group.
Parameters
Name | Type | Default | Description |
---|---|---|---|
$field * | string |Closure |
– | |
$caseInsensitive | bool |
true |
Ignore upper/lowercase for group names |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\Exception |
Parent class
Kirby\Cms\LayoutColumns
inherited from Kirby\Cms\Collection