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