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' ); } |
Please login to continue.