You are here

public function BUEditorSettingsForm::buildForm in BUEditor 8.2

Same name and namespace in other branches
  1. 8 src/Form/BUEditorSettingsForm.php \Drupal\bueditor\Form\BUEditorSettingsForm::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/BUEditorSettingsForm.php, line 30

Class

BUEditorSettingsForm
BUEditor settings form.

Namespace

Drupal\bueditor\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $config = $this
    ->config('bueditor.settings');
  $form['devmode'] = [
    '#type' => 'checkbox',
    '#title' => $this
      ->t('Enable development mode'),
    '#default_value' => $config
      ->get('devmode'),
    '#description' => $this
      ->t('In development mode minified libraries are replaced by source libraries to make debugging easier.'),
  ];
  return parent::buildForm($form, $form_state);
}