You are here

public function DevelopmentEnvironmentClearLogForm::buildForm in Development Environment 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 FormInterface::buildForm

File

src/Form/DevelopmentEnvironmentClearLogForm.php, line 51

Class

DevelopmentEnvironmentClearLogForm
Form to clear the email log.

Namespace

Drupal\development_environment\Form

Code

public function buildForm(array $form, FormStateInterface $formState) {
  $form['actions'] = [
    '#type' => 'actions',
  ];
  $form['clear_log'] = [
    '#type' => 'submit',
    '#value' => $this
      ->t('Clear email log'),
  ];
  return $form;
}