You are here

public function SettingsForm::buildForm in jQuery waypoints 8

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/SettingsForm.php, line 56

Class

SettingsForm
Copyprevention Settings Form class.

Namespace

Drupal\waypoints\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form = [];
  $form['waypoints_always_add_js'] = array(
    '#type' => 'checkbox',
    '#title' => t('Always include JavaScript file to the site.'),
    '#default_value' => $this->config
      ->get('waypoints_always_add_js'),
  );
  return parent::buildForm($form, $form_state);
}