User network changes¶
Version v1
Instead of downloading the archive, you can download and apply this model as a recipe (Drupal 10.3 or later):
1 2 |
|
Purpose¶
Users have references to a number of networks and when one gets added or deleted, this model recognizes the exact change and displays different messages about it.
For further reading, please go to this tutorial.
Dependencies¶
- config
- field.field.user.user.field_user_networks
- field.storage.user.field_user_networks
- taxonomy.vocabulary.networks
- module
- eca_base
- eca_content
- eca_tamper
- taxonomy
- user
Used plugins¶
Events¶
- Update content entity (User: User)
- ECA custom event (entity-aware) (additions)
- ECA custom event (entity-aware) (deletions)
Conditions¶
Actions¶
- Load original version of user (unchanged)
- Show Message: no changes
- Serialize new networks
- Serialize orig networks
- Custom event: additions
- Custom event: deletions
- Load item provided by custom event
- Message: new item
- Message: item exists
- Message: deleted item
- Message: item remains
- Get field value: new networks
- Get field value: orig networks
Changelog¶
v1
-
Initial version