You are here

public function EasyEmailRevisionRevertForm::buildForm in Easy Email 8

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

1 call to EasyEmailRevisionRevertForm::buildForm()
EasyEmailRevisionRevertTranslationForm::buildForm in src/Form/EasyEmailRevisionRevertTranslationForm.php
Form constructor.
1 method overrides EasyEmailRevisionRevertForm::buildForm()
EasyEmailRevisionRevertTranslationForm::buildForm in src/Form/EasyEmailRevisionRevertTranslationForm.php
Form constructor.

File

src/Form/EasyEmailRevisionRevertForm.php, line 103

Class

EasyEmailRevisionRevertForm
Provides a form for reverting 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;
}