You are here

public function ConfigurationForm::buildForm in Thunder 8.2

Same name in this branch
  1. 8.2 modules/thunder_media/src/Form/ConfigurationForm.php \Drupal\thunder_media\Form\ConfigurationForm::buildForm()
  2. 8.2 modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::buildForm()
Same name and namespace in other branches
  1. 8.3 modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::buildForm()
  2. 8.4 modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::buildForm()
  3. 6.0.x modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::buildForm()
  4. 6.1.x modules/thunder_article/src/Form/ConfigurationForm.php \Drupal\thunder_article\Form\ConfigurationForm::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

modules/thunder_article/src/Form/ConfigurationForm.php, line 32

Class

ConfigurationForm
Class ConfigurationForm.

Namespace

Drupal\thunder_article\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('thunder_article.settings');
  $form['move_scheduler_local_task'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Move scheduler to local task of content list'),
    '#description' => $this
      ->t('Disable this checkbox to get the scheduler default behavior.'),
    '#default_value' => $config
      ->get('move_scheduler_local_task'),
  ];
  return parent::buildForm($form, $form_state);
}