- ivnish Kazakhstan
5 years without any activity. I think we can close it as outdated. Please reopen if needed.
As a module developer that wants to take advantage of flag module and implement my own logic of some updates based on flagged/unflagged content, I'd like to subscribe to both events at the same time, and I have no problems with that, but every time one will subscribe to both events, they will have to handle events differently in their code, as the API is inconsistent, FlaggingEvent works with one flagging, while UnflaggingEvent works with an array of flaggings.
Drupal core content entities use foreach to iterate over entities in postDelete and send hook_entity_delete separately for every one, I'm wondering if it would be better for DX to do the same for UnflaggingEvent.
Provide a patch
None
UnflaggingEvent constructor accepts array of flaggings entities, after the change it should accept one flagging.
None
Closed: outdated
4.0
Flag core
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
5 years without any activity. I think we can close it as outdated. Please reopen if needed.