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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

keats76 created an issue. See original summary.

keats76’s picture

This is my first attempt at a contributed patch. Hopefully, it will work properly. Thanks

keats76’s picture

Loparev’s picture

Status: Active » Needs review
FileSize
3.67 KB
3.03 KB

Hi @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.

  • Loparev committed 9239752 on 8.x-4.x
    Issue #3085547 by keats76, Loparev: Add New Event For The File Download...
keats76’s picture

Works for me. Thanks @Loparev!

Loparev’s picture

Status: Needs review » Fixed

Released 8.x-4.2

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.