diff -u b/src/Form/FlagResetForm.php b/src/Form/FlagResetForm.php --- b/src/Form/FlagResetForm.php +++ b/src/Form/FlagResetForm.php @@ -44,7 +44,7 @@ * {@inheritdoc} */ public function getQuestion() { - return t('Are you sure you want to reset the Flag %label?', [ + return $this->t('Are you sure you want to reset the Flag %label?', [ '%label' => $this->flag->label(), ]); } @@ -53,7 +53,7 @@ * {@inheritdoc} */ public function getDescription() { - return t('All flaggings created with Flag %label will be deleted.', [ + return $this->t('All flaggings created with Flag %label will be deleted.', [ '%label' => $this->flag->label(), ]); } @@ -62,7 +62,7 @@ * {@inheritdoc} */ public function getConfirmText() { - return t('Reset'); + return $this->t('Reset'); } /** @@ -77,7 +77,7 @@ */ public function submitForm(array &$form, FormStateInterface $form_state) { flag_reset_flag($this->flag); - drupal_set_message(t('Flag %label was reset.', [ + drupal_set_message($this->t('Flag %label was reset.', [ '%label' => $this->flag->label(), ]));