You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using event subscribers to add additional data post-serialize. I'd like to only add certain properties if a particular exclusion strategy group is active, but can't see a way to access that information from within the callback. Assuming I haven't missed something, would it be possible to add this functionality, perhaps by making it available from the event? I'd make a PR if so.
The text was updated successfully, but these errors were encountered:
It's possible to access the GroupsExclusionStrategy with $event->getContext()->getExclusionStrategy(), but the groups property is protected and not exposed via a public method.
I'm using event subscribers to add additional data post-serialize. I'd like to only add certain properties if a particular exclusion strategy group is active, but can't see a way to access that information from within the callback. Assuming I haven't missed something, would it be possible to add this functionality, perhaps by making it available from the event? I'd make a PR if so.
The text was updated successfully, but these errors were encountered: