diff --git a/core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php b/core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php index 0e227a5234e7be4c2adbc462a24e0ee310668ca5..2f79f57e0794b09da778a250a4591c76822b2fdf 100644 --- a/core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php +++ b/core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php @@ -15,7 +15,7 @@ class ResponsiveImageMappingDeleteForm extends EntityConfirmFormBase { * {@inheritdoc} */ public function getQuestion() { - return t('Are you sure you want to delete the responsive image mapping %title?', array('%title' => $this->entity->label())); + return $this->t('Are you sure you want to delete the responsive image mapping %title?', array('%title' => $this->entity->label())); } /** @@ -31,7 +31,7 @@ public function getCancelRoute() { * {@inheritdoc} */ public function getConfirmText() { - return t('Delete'); + return $this->t('Delete'); } /** @@ -39,7 +39,7 @@ public function getConfirmText() { */ public function submit(array $form, array &$form_state) { $this->entity->delete(); - drupal_set_message(t('Responsive image mapping %label has been deleted.', array('%label' => $this->entity->label()))); + drupal_set_message($this->t('Responsive image mapping %label has been deleted.', array('%label' => $this->entity->label()))); watchdog('responsive_image', 'Responsive image mapping %label has been deleted.', array('%label' => $this->entity->label()), WATCHDOG_NOTICE); $form_state['redirect_route']['route_name'] = 'responsive_image.mapping_page'; }