Hey all, a question
When using the page.update:after hook in a plugin like the below snippet, should the $oldPage and $newPage modified dates be different? I assumed it would return the previous modified date and then the current modified date?
Thanks!
return [
'hooks' => [
'page.update:after' => function ($newPage, $oldPage) {
'oldPageModified' => $oldPage->modified('%d.%m.%Y %H:%M:%S'),
'newPageModified' => $newPage->modified('%d.%m.%Y %H:%M:%S'),
}
]
]