Problem/Motivation
Not best practice to use the procedural t() in OOP Code.
File: src/Plugin/views/exposed_form/Autosubmit.php
Proposed resolution
Use $this->t();
See:
https://www.drupal.org/docs/8/api/translation-api/overview
https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/function/t/8.6.x
Remaining tasks
Create patchReview/RTBC- Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | views_autosubmit-fixed_t-3028371-2.patch | 704 bytes | i-trokhanenko |
Comments
Comment #2
i-trokhanenkoPlease review.
Comment #3
i-trokhanenkoComment #4
Roman Dyn commentedReviewed views_autosubmit-fixed_t-3028371-2.patch. Patch applied successfully, works well for me. Please commit it. Thanks.
Comment #6
i-trokhanenko