function 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.