Skip to content

Kirby 6.0.0

$field->toPages()

Returns a pages collection from a yaml list of page ids in the field

$field->toPages(string $separator = 'yaml'): Pages

Parameters

Name Type Default Description
$separator string 'yaml' Can be any other separator to split the field value by

Return type

Kirby\Cms\Pages

Parent class

Kirby\Content\Field