Skip to content

Kirby 6.0.0

$collection->select()

$collection->select(mixed $keys = null): Collection

Parameters

Name Type Default Description
$keys mixed null Comma-separated string or array of keys, null for all keys, false to keep the selection

Return type

Kirby\Api\Collection

This method modifies the existing $collection object it is applied to and returns it again.

Exceptions

Type Description
Exception

Parent class

Kirby\Api\Collection