You are here

public function EasyEmailRevisionDeleteForm::buildForm in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Form/EasyEmailRevisionDeleteForm.php \Drupal\easy_email\Form\EasyEmailRevisionDeleteForm::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 ConfirmFormBase::buildForm

File

src/Form/EasyEmailRevisionDeleteForm.php, line 96

Class

EasyEmailRevisionDeleteForm
Provides a form for deleting a Email revision.

Namespace

Drupal\easy_email\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $easy_email_revision = NULL) {
  $this->revision = $this->EasyEmailStorage
    ->loadRevision($easy_email_revision);
  $form = parent::buildForm($form, $form_state);
  return $form;
}