Commit 4570670c authored by git's avatar git Committed by Eirik Morland
Browse files

Issue #3124646 by mo_farhaz, eiriksm: t() calls should be avoided in classes

parent 337b1853
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -130,9 +130,9 @@ class SettingsForm extends ConfigFormBase {
      ];
      $form['options']['skip_cron'] = [
        '#type' => 'checkbox',
        '#title' => t('Skip queue on cron'),
        '#title' => $this->t('Skip queue on cron'),
        '#default_value' => $config->get('skip_cron'),
        '#description' => t('If selected, the mail queue will not be processed by cron runs. Use this only if you manually run the queue with drush (for example).'),
        '#description' => $this->t('If selected, the mail queue will not be processed by cron runs. Use this only if you manually run the queue with drush (for example).'),
        '#states' => [
          'visible' => [
            ':input[name="async"]' => [
+1 −1
Original line number Diff line number Diff line
@@ -89,7 +89,7 @@ class TestMailForm extends FormBase {

    $form['submit'] = [
      '#type' => 'submit',
      '#value' => t('Send'),
      '#value' => $this->t('Send'),
    ];

    return $form;