function FilterFormatEditForm::submitForm

Same name in other branches
  1. 9 core/modules/filter/src/FilterFormatEditForm.php \Drupal\filter\FilterFormatEditForm::submitForm()
  2. 10 core/modules/filter/src/FilterFormatEditForm.php \Drupal\filter\FilterFormatEditForm::submitForm()
  3. 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\filter

Code

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.