As per the coding standard , t() calls should be avoided in classes, use dependency injection and $this->t() instead , removed the used class import and fixed the one blank line issue after function.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

harsha012 created an issue. See original summary.

harsha012’s picture

Status: Active » Needs review
FileSize
11.97 KB

Added patch

harsha012’s picture

Category: Bug report » Task
geerlingguy’s picture

Status: Needs review » Reviewed & tested by the community

Looks great, succinct and to the point! Thanks.

geerlingguy’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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