You are here

public function QueuerConfigForm::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_queuer_test/src/Form/QueuerConfigForm.php, line 32

Class

QueuerConfigForm
Queuer with a configuration form.

Namespace

Drupal\purge_queuer_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);
}