function FilterBase::settingsForm
Same name in other branches
- 9 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::settingsForm()
- 8.9.x core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::settingsForm()
- 10 core/modules/filter/src/Plugin/FilterBase.php \Drupal\filter\Plugin\FilterBase::settingsForm()
Overrides FilterInterface::settingsForm
3 methods override FilterBase::settingsForm()
- FilterHtml::settingsForm in core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtml.php - Generates a filter's settings form.
- FilterUrl::settingsForm in core/
modules/ filter/ src/ Plugin/ Filter/ FilterUrl.php - Generates a filter's settings form.
- MediaEmbed::settingsForm in core/
modules/ media/ src/ Plugin/ Filter/ MediaEmbed.php - Generates a filter's settings form.
File
-
core/
modules/ filter/ src/ Plugin/ FilterBase.php, line 129
Class
- FilterBase
- Provides a base class for Filter plugins.
Namespace
Drupal\filter\PluginCode
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 [];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.