$field->toPages()
Returns a pages collection from a yaml list of page ids in the field
Parameters
Name | Type | Default | Description |
---|---|---|---|
$separator | string |
'yaml' |
Can be any other separator to split the field value by |
Return type
The toPages()
field method only returns published (listed and unlisted) pages, not drafts.