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.
Replacing t(' with $this->t (Group module [d8])
Comment | File | Size | Author |
---|---|---|---|
#9 | group-2826874-9.patch | 7.74 KB | LOBsTerr |
| |||
#7 | after.png | 78.19 KB | lomasr |
Comments
Comment #2
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedAdding a patch .Please review.
Comment #3
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #5
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedComment #6
kristiaanvandeneynde$this->t()
.$this
GroupTypeListBuilder, GroupRoleDeleteForm, GroupRoleForm, GroupPermissionsRoleSpecificForm and GroupContentViewsData did have the trait (all forms do) and could thus use it.
Attached is a smaller patch fixing the places that were valid. If we want to use $this->t() in other places, we need to look into using the trait there and whether it is useful to actually do so.
Comment #7
lomasr CreditAttribution: lomasr at gai Technologies Pvt Ltd for gai Technologies Pvt Ltd commentedThanks for the clarification. I applied the patch in #6 It didn't worked for me . Please see the after.png.
Comment #8
kristiaanvandeneyndeYeah it needs a reroll.
Comment #9
LOBsTerr CreditAttribution: LOBsTerr at European Commission and European Union Institutions, Agencies and Bodies commentedI've added a reroll
Comment #10
i-trokhanenkoPatch #9 applied correctly to 8.x-1.x-dev. Changes looks good for me.
+1 RTBC
Comment #11
kristiaanvandeneyndeLooks good, thanks!
Comment #14
lomasr CreditAttribution: lomasr as a volunteer and at Axelerant for Axelerant commented