Issue #2821868 by Akshay kashyap, nehakhadke, tmaiochi, Rodrigo Borges, i-trokhanenko: $this->t() should be used instead of t() for Drupal 8 version