Issue #3124369 by sanjayk, Pooja Ganjage, anagomes, Deepak Goyal,...
Issue #3124369 by sanjayk, Pooja Ganjage, anagomes, Deepak Goyal, swatichouhan012, TR, Berdir: t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
$this->revision->setRevisionLogMessage($this->t('Copy of the revision from %date.',['%date'=>$this->dateFormatter->format($original_revision_timestamp)]));
$this->messenger()->addStatus(t('@type %title has been reverted to the revision from %revision-date.',[
$this->messenger()->addStatus($this->t('@type %title has been reverted to the revision from %revision-date.',[