From 6cfdd7f8fdf37e7f2b6bdd323156b36dc1e16912 Mon Sep 17 00:00:00 2001 From: Liam Morland <lkmorlan@uwaterloo.ca> Date: Mon, 25 Jan 2021 13:28:15 -0500 Subject: [PATCH] ISTWCMS-4208: Use StringTranslationTrait Fixes issue introduced in 1a03da1. --- src/Form/UwContentModerationForm.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Form/UwContentModerationForm.php b/src/Form/UwContentModerationForm.php index 87c42f0e..b6613f17 100644 --- a/src/Form/UwContentModerationForm.php +++ b/src/Form/UwContentModerationForm.php @@ -203,12 +203,12 @@ class UwContentModerationForm extends ConfirmFormBase { if ($this->status) { // Return the question to see if they want to publish the node. - return t('Unpublish %node_title?', ['%node_title' => $node->getTitle()]); + return $this->t('Unpublish %node_title?', ['%node_title' => $node->getTitle()]); } else { // Return the question to see if they want to publish the node. - return t('Publish %node_title?', ['%node_title' => $node->getTitle()]); + return $this->t('Publish %node_title?', ['%node_title' => $node->getTitle()]); } } -- GitLab