You are here

public function EventRevisionRevertForm::buildForm in Event 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 ConfirmFormBase::buildForm

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

File

src/Form/EventRevisionRevertForm.php, line 104

Class

EventRevisionRevertForm
Provides a form for reverting a Event revision.

Namespace

Drupal\event\Form

Code

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