public function buildForm()

in modules/quanthub_sdmx_proxy/src/Form/SettingsForm.php [48:82]


  public function buildForm(array $form, FormStateInterface $form_state) {
    $settings = $this->config('quanthub_sdmx_proxy.settings');

    $form['api_url'] = [
      '#type' => 'textfield',
      '#title' => $this->t('API URL'),
      '#default_value' => $settings->get('api_url'),
    ];

    $form['auth_token_endpoint'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Auth token endpoint'),
      '#default_value' => $settings->get('auth_token_endpoint'),
    ];

    $form['auth_client_id'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Auth Client Id'),
      '#default_value' => $settings->get('auth_client_id'),
    ];

    $form['auth_client_secret'] = [
      '#type' => 'key_select',
      '#title' => $this->t('Auth Client Secret'),
      '#default_value' => $settings->get('auth_client_secret'),
    ];

    $form['auth_scope'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Auth Scope'),
      '#default_value' => $settings->get('auth_scope'),
    ];

    return parent::buildForm($form, $form_state);
  }