Virutal pages on Kirby 4

With Kirby 3, I used this model to retrieve content from an external source (specifically Airtable):

With Kirby 4, I encounter an error related to the public function children().

Referring to the guide’s model format, it states:

Declaration of ReviewsPage::children() must be compatible with Kirby\Cms\Page::children(): Kirby\Cms\Pages.

The line:

public function children()

should be like this in Kirby 4

public function children(): Pages
1 Like

Yes, it works, thank you