Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grav\Framework\Flex\Pages\Traits\PageLegacyTrait::getOriginal(): Not Implemented #3098

Closed
matt-j-m opened this issue Dec 9, 2020 · 0 comments
Assignees

Comments

@matt-j-m
Copy link

matt-j-m commented Dec 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants