function FilterFormatAddForm::submitForm
Overrides FilterFormatFormBase::submitForm
File
-
core/
modules/ filter/ src/ FilterFormatAddForm.php, line 24
Class
- FilterFormatAddForm
- Provides a form for adding a filter format.
Namespace
Drupal\filterCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this->messenger()
->addStatus($this->t('Added text format %format.', [
'%format' => $this->entity
->label(),
]));
$form_state->setRedirect('filter.admin_overview');
return $this->entity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.