is there a function in the kirby core to convert a page object to YAML data like $page->create but without writing it to disk?
Something like $page->create without URI and Template?
I need it inside a page.update.hook to check if $page and $oldPage are the same/something was changed.
Maybe there is a better way to check this?