You are here

public function HttpClientManagerConfigForm::buildForm in HTTP Client Manager 8

Same name and namespace in other branches
  1. 8.2 src/Form/HttpClientManagerConfigForm.php \Drupal\http_client_manager\Form\HttpClientManagerConfigForm::buildForm()

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ConfigFormBase::buildForm

File

src/Form/HttpClientManagerConfigForm.php, line 34

Class

HttpClientManagerConfigForm
Class HttpClientManagerConfigForm.

Namespace

Drupal\http_client_manager\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('http_client_manager.settings');
  $form['enable_overriding_service_definitions'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Enable overriding of HTTP Services API definitions'),
    '#description' => $this
      ->t('Check this option to enable overriding of HTTP Services API definitions via settings.php.'),
    '#default_value' => $config
      ->get('enable_overriding_service_definitions'),
  ];
  return parent::buildForm($form, $form_state);
}