Page models are registered with the
Page models extend Kirby's default page object. Methods that you define in a page model are available everywhere in Kirby where you call a page of the extended type.
In a real world example, you would usually put the class in a separate file, e.g.
/models/BlogPage.php in your plugin folder:
And then load it in your plugin's
For details see page models in the guide.