You are here

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

File

src/Form/HomeboxLayoutRevisionRevertForm.php, line 121

Class

HomeboxLayoutRevisionRevertForm
Provides a form for reverting a Homebox Layout revision.

Namespace

Drupal\homebox\Form

Code

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