summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-03-21 17:36:33 (GMT)
committerwebchick2014-03-21 17:36:33 (GMT)
commit683223968a44fc83e94cd406c81805b4f627c89a (patch)
treeaf29d90efff10e6423a49c2564692776af1dedb7
parent672ac3f9df6ddd74300c938158a302433d2ca095 (diff)
Issue #2078001 by RoSk0, JayeshSolanki | alexanansi: Modernize responsive_image.module forms.
-rw-r--r--core/modules/responsive_image/lib/Drupal/responsive_image/Form/ResponsiveImageMappingDeleteForm.php6
1 files changed, 3 insertions, 3 deletions
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 0e227a5..2f79f57 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 @@ class ResponsiveImageMappingDeleteForm extends EntityConfirmFormBase {
* {@inheritdoc}
*/
public function getConfirmText() {
- return t('Delete');
+ return $this->t('Delete');
}
/**
@@ -39,7 +39,7 @@ class ResponsiveImageMappingDeleteForm extends EntityConfirmFormBase {
*/
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';
}