You are here

public function ProtectedPagesDeleteConfirmForm::buildForm in Protected Pages 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/ProtectedPagesDeleteConfirmForm.php, line 101

Class

ProtectedPagesDeleteConfirmForm
Provides delete protected page confirm form.

Namespace

Drupal\protected_pages\Form

Code

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