function FilterFormatEditForm::submitForm
Same name in other branches
- 8.9.x core/modules/filter/src/FilterFormatEditForm.php \Drupal\filter\FilterFormatEditForm::submitForm()
- 10 core/modules/filter/src/FilterFormatEditForm.php \Drupal\filter\FilterFormatEditForm::submitForm()
- 11.x core/modules/filter/src/FilterFormatEditForm.php \Drupal\filter\FilterFormatEditForm::submitForm()
Overrides FilterFormatFormBase::submitForm
File
-
core/
modules/ filter/ src/ FilterFormatEditForm.php, line 32
Class
- FilterFormatEditForm
- 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('The text format %format has been updated.', [
'%format' => $this->entity
->label(),
]));
return $this->entity;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.