DeleteForm::buildForm

public DeleteForm::buildForm(array $form, FormStateInterface $form_state, $pid = NULL)

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

core/modules/path/src/Form/DeleteForm.php, line 73

Class

DeleteForm
Builds the form to delete a path alias.

Namespace

Drupal\path\Form

Code

public function buildForm(array $form, FormStateInterface $form_state, $pid = NULL) {
  $this->pathAlias = $this->aliasStorage->load(array('pid' => $pid));

  $form = parent::buildForm($form, $form_state);

  return $form;
}
doc_Drupal
2016-10-29 09:02:07
Comments
Leave a Comment

Please login to continue.