Hey everybody,
I have a tiny bit of custom admin processing for pages with a certain template. All is working fine so far, but not when the page’s folder is being renamed, because I’m checking whether a certain file exists under that route.
My problem here is that I don’t know how to say “don’t do this if folder is being moved (renamed)”. When I dump($event['object'])
after a folder rename, I can find an action “move” at the end of a long list of Page details:
Page {#300 ▼
[lots of stuff goes here]
#debugger: null
#forms: null
-_original: Page {#254 ▶}
-_action: "move"
#media: null
}
But how do I check this private property? I’m sure I’m missing something simple here…
Thanks for your time!