You are here

public function HomeboxLayoutRevisionDeleteForm::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

File

src/Form/HomeboxLayoutRevisionDeleteForm.php, line 112

Class

HomeboxLayoutRevisionDeleteForm
Provides a form for deleting 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;
}