Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We are using Paragraphs and have implemented Asymmetric Translation for our experimental widgets. This requires us to perform some processing before the file downloads are processed and the translations are applied.
We would like a new event to be added so that we may subscribe to it. I will add a patch file to this request later today and I would like to suggest that it is added as a new feature for the module.
Thanks!
Mike
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-2-4.txt | 3.03 KB | Loparev |
#4 | tmgmt_smartling-after_download_event-3085547-4.patch | 3.67 KB | Loparev |
#3 | 3085547-add-new-event-for-the-file-download-action-2.patch | 2.19 KB | keats76 |
#2 | 3085547-add-new-event-for-the-file-download-action.patch | 2.3 KB | keats76 |
Comments
Comment #2
keats76 CreditAttribution: keats76 commentedThis is my first attempt at a contributed patch. Hopefully, it will work properly. Thanks
Comment #3
keats76 CreditAttribution: keats76 commentedPath issue.
Comment #4
Loparev CreditAttribution: Loparev commentedHi @keats76,
Thanks for the patch. I have a proposal to extract `getJob()` method into an interface and also provide a trait which provides protected property + implements constructor and `getJob` methods. Because for now seems like we have a code duplication since there is `RequestTranslationEvent` class with exactly the same contents.
Comment #6
keats76 CreditAttribution: keats76 commentedWorks for me. Thanks @Loparev!
Comment #7
Loparev CreditAttribution: Loparev commentedReleased 8.x-4.2