You are here

public function PurgerConfigForm::buildForm in Purge 8.3

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 PluginConfigFormBase::buildForm

File

tests/modules/purge_purger_test/src/Form/PurgerConfigForm.php, line 32

Class

PurgerConfigForm
Configuration form for a test purger.

Namespace

Drupal\purge_purger_test\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  $form['textfield'] = [
    '#type' => 'textfield',
    '#title' => $this
      ->t('Test'),
    '#required' => FALSE,
  ];
  return parent::buildForm($form, $form_state);
}