I try to use group module in d8.
2. I added 2 group as demo with admin is default
- I enter the user as normal.
- then click save button.
5. The result is User was added into that group.
So, What I wonder is how to know an user:
- Was added to a group.
- Was removed from a group.
Because I want to call another service every time that action/event was executed. For example, I want to log in to the watchdog like:
- "User A has been added into group X"
- "User B has been remove from group Y"
Is there any way to trigger that action/event in code.
Thanks for all your helps.