function FilterFormatListBuilder::submitForm

Same name in other branches
  1. 9 core/modules/filter/src/FilterFormatListBuilder.php \Drupal\filter\FilterFormatListBuilder::submitForm()
  2. 8.9.x core/modules/filter/src/FilterFormatListBuilder.php \Drupal\filter\FilterFormatListBuilder::submitForm()
  3. 10 core/modules/filter/src/FilterFormatListBuilder.php \Drupal\filter\FilterFormatListBuilder::submitForm()

Overrides DraggableListBuilderTrait::submitForm

File

core/modules/filter/src/FilterFormatListBuilder.php, line 168

Class

FilterFormatListBuilder
Defines a class to build a listing of filter format entities.

Namespace

Drupal\filter

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
    parent::submitForm($form, $form_state);
    filter_formats_reset();
    $this->messenger
        ->addStatus($this->t('The text format ordering has been saved.'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.