You are here

public function HeartbeatStreamRevisionRevertForm::buildForm in Heartbeat 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 HeartbeatStreamRevisionRevertForm::buildForm()
HeartbeatStreamRevisionRevertTranslationForm::buildForm in src/Form/HeartbeatStreamRevisionRevertTranslationForm.php
Form constructor.
1 method overrides HeartbeatStreamRevisionRevertForm::buildForm()
HeartbeatStreamRevisionRevertTranslationForm::buildForm in src/Form/HeartbeatStreamRevisionRevertTranslationForm.php
Form constructor.

File

src/Form/HeartbeatStreamRevisionRevertForm.php, line 103

Class

HeartbeatStreamRevisionRevertForm
Provides a form for reverting a Heartbeat stream revision.

Namespace

Drupal\heartbeat\Form

Code

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