$field->query()
Uses the field value as Kirby query
Parameters
Name | Type | Default |
---|---|---|
$expect | string |null |
null |
Return type
mixed
|null
Example
Assuming your text field value is site.find('notes')
this query will return the notes
page. With the expect
parameter, you can optionally define the expected return type, in this case a Kirby\Cms\Page
object.