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

1
2
3
4
5
public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->aliasStorage->delete(array('pid' => $this->pathAlias['pid']));
 
  $form_state->setRedirect('path.admin_overview');
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.