public function DeleteForm::buildForm

Same name in this branch

Overrides \Drupal\Core\Form\ConfirmFormBase::buildForm().

Overrides ConfirmFormBase::buildForm

File

drupal/core/modules/path/lib/Drupal/path/Form/DeleteForm.php, line 77
Contains \Drupal\path\Form\DeleteForm.

Class

DeleteForm
Builds the form to delete a path alias.

Namespace

Drupal\path\Form

Code

public function buildForm(array $form, array &$form_state, $pid = NULL) {
  $this->pathAlias = $this->path
    ->load(array(
    'pid' => $pid,
  ));
  return parent::buildForm($form, $form_state);
}