You are here

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

Class

ProcessorConfigForm
Configuration form for a test processor.

Namespace

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