Issue #2843899 by nehakhadke, dhruveshdtripathi: $this->t() should be used instead of t() for Drupal 8 version