You are here

public function FilterBase::settingsForm in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::settingsForm()
  2. 9 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::settingsForm()

File

core/modules/filter/src/Plugin/FilterBase.php, line 129

Class

FilterBase
Provides a base class for Filter plugins.

Namespace

Drupal\filter\Plugin

Code

public function settingsForm(array $form, FormStateInterface $form_state) {

  // Implementations should work with and return $form. Returning an empty
  // array here allows the text format administration form to identify whether
  // the filter plugin has any settings form elements.
  return [];
}