- 🇮🇳India anup.sinha Bengaluru
Hi @hchonov, Can you please reply to Antoniya's question why a condition for a specific language.
Also I think this should be a high priority task as currently we don't have any option to alter the translate overview table. This is really a blocker if we want to add a button for any content translation service or do any modification into that table.
Thanks & Regards,
Anup - Status changed to Needs work
almost 2 years ago 7:13am 3 February 2023 - 🇮🇳India anup.sinha Bengaluru
Hi @All,
I have validated the latest patch and the newly created hook is not working. I have implemented the new hook in my custom module and getting the below error -
[03-Feb-2023 12:36:33 Asia/Kolkata] Uncaught PHP Exception Error: "Cannot use object of type Drupal\Core\StringTranslation\TranslatableMarkup as array" at C:\wamp64\www\drupal-10.0.0\modules\custom\content_view_alter\content_view_alter.module line 14
Line #14 - "if (isset($column['data']['#type']) && ($column['data']['#type'] === 'operations')) {"
Also please whenever a new hook is created, make sure we add a new test for it as the code added in api.php will have no impact until we are implementing it. So it's very important to have a test for any hook. Changing the ticket status to Needs work.
Thanks & Regards,
Anup - 🇺🇸United States smustgrave
Closed ✨ Content Translation Overview Controller - make overview table easier to extend Closed: duplicate as a duplicate
- 🇺🇸United States sonfd Portland, ME
https://www.drupal.org/project/drupal/issues/3227102 ✨ Content Translation Overview Controller - make overview table easier to extend Closed: duplicate also gave columns non-numeric, descriptive keys, see patch #2 → from that issue. +1 for doing that here too.
- miiimooo Europe
+1 from me for this patch.
I have added an example project that is useful when there are many languages installed on a site here https://www.drupal.org/sandbox/miiimooo/3414705 →
The project depends on this patch at the moment