As per the coding standard,

t() calls should be avoided in classes, use dependency injection and $this->t() instead

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

snehal.addweb created an issue. See original summary.

Snehal Brahmbhatt’s picture

Status: Active » Needs review
FileSize
1.02 KB

Here's the patch kindly review it...

marvin_B8’s picture

Thanks for the work, I'll check it out on the weekend.

  • dev20.addweb authored 781e922 on 8.x-1.x
    Issue #3027085 by dev20.addweb: t() calls should be avoided in classes,...
marvin_B8’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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