diff --git a/core/modules/image/lib/Drupal/image/Form/ImageStyleFlushForm.php b/core/modules/image/lib/Drupal/image/Form/ImageStyleFlushForm.php index 6235c95..4e3a9ff 100644 --- a/core/modules/image/lib/Drupal/image/Form/ImageStyleFlushForm.php +++ b/core/modules/image/lib/Drupal/image/Form/ImageStyleFlushForm.php @@ -33,14 +33,14 @@ public function getFormID() { * {@inheritdoc} */ public function getQuestion() { - return t('Are you sure you want to flush image derivatives for %name image style?', array('%name' => $this->image_style->label())); + return $this->t('Are you sure you want to flush image derivatives for %name image style?', array('%name' => $this->image_style->label())); } /** * {@inheritdoc} */ public function getDescription() { - return t('This action cannot be undone. Image derivatives will be magically recreated as they are requested.'); + return $this->t('This action cannot be undone. Image derivatives will be magically recreated as they are requested.'); } /** @@ -73,7 +73,7 @@ public function buildForm(array $form, array &$form_state, ImageStyleInterface $ */ public function submitForm(array &$form, array &$form_state) { $this->image_style->flush(); - drupal_set_message(t('The image style %name has been flushed.', array('%name' => $this->image_style->label()))); + drupal_set_message($this->t('The image style %name has been flushed.', array('%name' => $this->image_style->label()))); $form_state['redirect'] = 'admin/config/media/image-styles'; }