function PathAliasForm::save
Same name in other branches
- 8.9.x core/modules/path/src/PathAliasForm.php \Drupal\path\PathAliasForm::save()
- 10 core/modules/path/src/PathAliasForm.php \Drupal\path\PathAliasForm::save()
- 11.x core/modules/path/src/PathAliasForm.php \Drupal\path\PathAliasForm::save()
Overrides EntityForm::save
File
-
core/
modules/ path/ src/ PathAliasForm.php, line 25
Class
- PathAliasForm
- Form handler for the path alias edit forms.
Namespace
Drupal\pathCode
public function save(array $form, FormStateInterface $form_state) {
parent::save($form, $form_state);
$this->messenger()
->addStatus($this->t('The alias has been saved.'));
$form_state->setRedirect('entity.path_alias.collection');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.