public function DeleteForm::submitForm

Same name in this branch

Implements \Drupal\Core\Form\FormInterface::submitForm().

Overrides FormInterface::submitForm

File

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

Class

DeleteForm
Builds the form to delete a path alias.

Namespace

Drupal\path\Form

Code

public function submitForm(array &$form, array &$form_state) {
  $this->path
    ->delete(array(
    'pid' => $this->pathAlias['pid'],
  ));
  $form_state['redirect'] = 'admin/config/search/path';
}