Problem/Motivation
When restoring and purging entities, I recommend we add the following log messages, similar to Drupal core's node module.
- [bundle]: restored [entity:title].
- [bundle]: purged [entity:title].
Log message type: trash
Severity: info
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | new_logger_message.png | 15.83 KB | anish.ir |
| #4 | logger_trash.png | 62.14 KB | anish.ir |
| #4 | logger_message_details.png | 44 KB | anish.ir |
Issue fork trash-3506874
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
anish.ir commentedWorking on it.
Comment #4
anish.ir commentedHey,
Added both the logger messages. Attaching screenshots for better understanding.
Please have a look.
Thanks !
Comment #5
amateescu commentedThe node log message works nicely because it's on the
contentlogger channel, but if we're using thetrashchannel we need to specify the entity type as well.NW for that and for failing tests.
Comment #6
anish.ir commentedHey @amateescu,
Thanks for the feedback!
I've updated the logger message to include the entity type, ensuring consistency with the trash channel.
Additionally, I have resolved the failing pipeline tests by properly injecting dependencies. The tests are working fine now.
Attaching screenshot for the logger message and reference.
Let me know if any further adjustments are needed!
Thanks !
Comment #8
amateescu commentedCleaned up the MR and merged into 3.x, thanks.