Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / redirect / src / Form / RedirectSettingsForm.php
index f2b7d1b2fb45f11c4a423c9bf7bb4c6fbc72c346..029973dcc15c7420a39a4770bb345889056d1861 100644 (file)
@@ -58,7 +58,7 @@ class RedirectSettingsForm extends ConfigFormBase {
     $form['globals']['redirect_route_normalizer_enabled'] = array(
       '#type' => 'checkbox',
       '#title' => $this->t('Enforce clean and canonical URLs.'),
-      '#description' => $this->t('Enabling this will automatically redirect to the canonical URL of any page. That includes redirecting to an alias if existing, removing trainling slashes, ensure the language prefix is set and similar clean-up.'),
+      '#description' => $this->t('Enabling this will automatically redirect to the canonical URL of any page. That includes redirecting to an alias if existing, removing trailing slashes, ensure the language prefix is set and similar clean-up.'),
       '#default_value' => $config->get('route_normalizer_enabled'),
     );
     $form['globals']['redirect_ignore_admin_path'] = array(
@@ -87,7 +87,7 @@ class RedirectSettingsForm extends ConfigFormBase {
       }
     }
     $config->save();
-    drupal_set_message(t('Configuration was saved.'));
+    drupal_set_message($this->t('Configuration was saved.'));
   }
 
 }