Commit 75a501e5 authored by Megha kundar's avatar Megha kundar Committed by Megha kundar
Browse files

Issue #3301961 by anoopsingh92, Rakhi Soni, Megha_kundar: t() calls should be avoided in classes

parent 33433e60
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -34,20 +34,20 @@ class SailThruConnectForm extends ConfigFormBase {
    $form['sailthru_customer_id'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Sailthru Customer Id'),
      '#description' => t('The Customer ID provided by Sailthru'),
      '#description' => $this->t('The Customer ID provided by Sailthru'),
      '#default_value' => $config->get('sailthru_customer_id') ?? '',
    ];
    $form['sailthru_api_key'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Sailthru API Key'),
      '#description' => t('The API key provided by Sailthru'),
      '#description' => $this->t('The API key provided by Sailthru'),
      '#default_value' => $config->get('sailthru_api_key') ?? '',
      '#required' => TRUE,
    ];
    $form['sailthru_secret'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Sailthru Secret'),
      '#description' => t('The secret provided by Sailthru'),
      '#description' => $this->t('The secret provided by Sailthru'),
      '#default_value' => $config->get('sailthru_secret') ?? '',
      '#required' => TRUE,

@@ -55,7 +55,7 @@ class SailThruConnectForm extends ConfigFormBase {
    $form['sailthru_uri'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Sailthru URI'),
      '#description' => t('The URI provided by Sailthru'),
      '#description' => $this->t('The URI provided by Sailthru'),
      '#default_value' => $config->get('sailthru_uri') ?? '',
    ];