You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using Grav\Common\Page::getOriginal() to compare a page's old/new frontmatter in the onAdminSave event hook. As of 1.7 it seems $event['object'] has changed from an instance of Page to PageObject, which is fine, except that Grav\Framework\Flex\Pages\Traits\PageLegacyTrait::getOriginal() is marked with TODO and simply returns a message saying the method is not implemented. Will this function eventually be available or is there any alternative I could use to determine what a page's existing frontmatter looks like at the time of onAdminSave? Cheers.
The text was updated successfully, but these errors were encountered:
I am currently using Grav\Common\Page::getOriginal() to compare a page's old/new frontmatter in the onAdminSave event hook. As of 1.7 it seems $event['object'] has changed from an instance of Page to PageObject, which is fine, except that Grav\Framework\Flex\Pages\Traits\PageLegacyTrait::getOriginal() is marked with TODO and simply returns a message saying the method is not implemented. Will this function eventually be available or is there any alternative I could use to determine what a page's existing frontmatter looks like at the time of onAdminSave? Cheers.
The text was updated successfully, but these errors were encountered: