Skip to content

Kirby 4.5.0

$filepicker->itemsToArray()

Converts all given items to an associative array that is already optimized for the panel picker component.

$filepicker->itemsToArray(?Kirby\Cms\Collection $items = null): array

Parameters

Name Type Default
$items Kirby\Cms\Collection|null null

Return type

array

Parent class

Kirby\Cms\FilePicker inherited from Kirby\Cms\Picker