Add explicit event for duplicating elements. #16596
Unanswered
myleshyson
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey! I need to add some logic specific to duplication, and noticed that there's no events specific to duplicating like there are for other actions like saving and deleting.
It looks like I can maybe watch out for the
duplicateOf
property on save, but it makes me nervous to rely on a property instead of an explicit action. I think it would be much nicer and less error prone to have an explicit event to listen for.What do ya'll think of adding these two events to
craft\services\Elements
?I don't mind opening a pull request for it if this is on the table.
Beta Was this translation helpful? Give feedback.
All reactions