DeleteForm::submitForm

public DeleteForm::submitForm(array &$form, FormStateInterface $form_state)

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

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

Class

DeleteForm
Builds the form to delete a path alias.

Namespace

Drupal\path\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->aliasStorage->delete(array('pid' => $this->pathAlias['pid']));

  $form_state->setRedirect('path.admin_overview');
}
doc_Drupal
2016-10-29 09:02:10
Comments
Leave a Comment

Please login to continue.