$this->t() should be used instead of t() as per coding standards.

Issue fork patternkit-3299960

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Munavijayalakshmi created an issue. See original summary.

Munavijayalakshmi’s picture

Assigned: Munavijayalakshmi » Unassigned
Status: Active » Needs review
StatusFileSize
new18.39 KB

Status: Needs review » Needs work

The last submitted patch, 2: 3299960-2.patch, failed testing. View results

slucero’s picture

Version: 9.1.x-dev » 9.1.0-beta4

Hi @Munavijayalakshmi, thank you for posting the contribution! It looks like from the testing results some of the changes in your patch include replacement within static functions where $this is unavailable. Would you mind adjusting the patch to not change those?

lucassc’s picture

Status: Needs work » Needs review
StatusFileSize
new11.01 KB

Hello, @Munavijayalakshmi and @slucero!

I applied the patch from #2 and reverted the changes within static functions.

Please, review this.

Status: Needs review » Needs work

The last submitted patch, 5: 3299960-5.patch, failed testing. View results

lucassc’s picture

Status: Needs work » Needs review
StatusFileSize
new10.62 KB

Reverted remaining changes within static functions.

Status: Needs review » Needs work

The last submitted patch, 7: 3299960-7.patch, failed testing. View results

lucassc’s picture

StatusFileSize
new10.41 KB

Tests in #7 were still failing, so I tried a new patch now reverting the change in src/Plugin/Derivative/PatternkitBlock.php:177.

Please, review this.

lucassc’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 9: 3299960-9.patch, failed testing. View results

akshaydalvi212’s picture

Assigned: Unassigned » akshaydalvi212
Issue summary: View changes
StatusFileSize
new33.14 KB

Hello,

Thanks for the patch,

While reviewing the patch, still encountered some similar warnings as mentioned below:

Need to update patch #9 to eliminate the remaining warnings as well.

Thanks and regards

akshaydalvi212’s picture

Assigned: akshaydalvi212 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new11.65 KB

Hello,

Providing the updated patch which can eliminate the remaining warning related to t() tobe replaced by $this->t():

Kindly review and provide feedback on the same.

Thanks and regards

Status: Needs review » Needs work

The last submitted patch, 13: 3299960-13.patch, failed testing. View results

anoopsingh92’s picture

Assigned: Unassigned » anoopsingh92
anoopsingh92’s picture

StatusFileSize
new13.19 KB

Hi, I have applied a patch please review this. Thanks

anoopsingh92’s picture

Assigned: anoopsingh92 » Unassigned
Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 16: 3299960-16.patch, failed testing. View results

anoopsingh92’s picture

StatusFileSize
new14.13 KB

Review this patch.

anoopsingh92’s picture

Status: Needs work » Needs review
jatingupta40’s picture

Assigned: Unassigned » jatingupta40

I will review this patch.

Status: Needs review » Needs work

The last submitted patch, 19: 3299960-19.patch, failed testing. View results

jatingupta40’s picture

Assigned: jatingupta40 » Unassigned
Status: Needs work » Needs review
StatusFileSize
new18.32 KB

Providing a patch, please review.
Thanks

Status: Needs review » Needs work

The last submitted patch, 23: updated-patch-3299960-23.patch, failed testing. View results

alanmoreira’s picture

Assigned: Unassigned » alanmoreira

I'll work on this =)

alanmoreira’s picture

Assigned: alanmoreira » Unassigned
Status: Needs work » Needs review
StatusFileSize
new18.58 KB
new392 bytes

New patch done. Leaving unassigned and changing status to "Needs review"

Tauany Bueno’s picture

Assigned: Unassigned » Tauany Bueno

hi! i'll review it :)

Tauany Bueno’s picture

Assigned: Tauany Bueno » Unassigned
Status: Needs review » Reviewed & tested by the community

Hello!!

I reviewed the patches and ran phpcs, and didn't find any warning regarding t() calls.
Changing to RTBC :)

slucero’s picture

Parent issue: » #3296167: Beta 5 Release Plan
StatusFileSize
new13.64 KB
new7.66 KB

I found some additional places that weren't in an object context that got changed and I've reverted those. Aside from those tweaks, this should be good to go.

Thanks for the contributions everybody!

  • slucero authored b1932fc on 9.1.x
    Issue #3299960 by anoopsingh92, lucassc, slucero, akshaydalvi212,...
slucero’s picture

Status: Reviewed & tested by the community » Fixed

Merged! Thanks for the work everybody!

Status: Fixed » Closed (fixed)

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