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