diff --git a/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php b/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php index a174e31..686cdae 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityConfirmFormBase.php @@ -26,21 +26,21 @@ public function getBaseFormID() { * {@inheritdoc} */ public function getDescription() { - return t('This action cannot be undone.'); + return $this->t('This action cannot be undone.'); } /** * {@inheritdoc} */ public function getConfirmText() { - return t('Confirm'); + return $this->t('Confirm'); } /** * {@inheritdoc} */ public function getCancelText() { - return t('Cancel'); + return $this->t('Cancel'); } /** diff --git a/core/lib/Drupal/Core/Form/ConfirmFormBase.php b/core/lib/Drupal/Core/Form/ConfirmFormBase.php index a6930f4..d44ab47 100644 --- a/core/lib/Drupal/Core/Form/ConfirmFormBase.php +++ b/core/lib/Drupal/Core/Form/ConfirmFormBase.php @@ -16,21 +16,21 @@ * {@inheritdoc} */ public function getDescription() { - return t('This action cannot be undone.'); + return $this->t('This action cannot be undone.'); } /** * {@inheritdoc} */ public function getConfirmText() { - return t('Confirm'); + return $this->t('Confirm'); } /** * {@inheritdoc} */ public function getCancelText() { - return t('Cancel'); + return $this->t('Cancel'); } /**