class FilterHtmlCorrector
Same name in other branches
- 9 core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector
- 8.9.x core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector
- 10 core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector
Provides a filter to correct faulty and chopped off HTML.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
- class \Drupal\filter\Plugin\FilterBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\filter\Plugin\FilterInterface
- class \Drupal\filter\Plugin\Filter\FilterHtmlCorrector extends \Drupal\filter\Plugin\FilterBase
- class \Drupal\filter\Plugin\FilterBase extends \Drupal\Core\Plugin\PluginBase implements \Drupal\filter\Plugin\FilterInterface
- class \Drupal\Core\Plugin\PluginBase extends \Drupal\Component\Plugin\PluginBase uses \Drupal\Core\StringTranslation\StringTranslationTrait, \Drupal\Core\DependencyInjection\DependencySerializationTrait, \Drupal\Core\Messenger\MessengerTrait
Expanded class hierarchy of FilterHtmlCorrector
File
-
core/
modules/ filter/ src/ Plugin/ Filter/ FilterHtmlCorrector.php, line 15
Namespace
Drupal\filter\Plugin\FilterView source
class FilterHtmlCorrector extends FilterBase {
/**
* {@inheritdoc}
*/
public function process($text, $langcode) {
return new FilterProcessResult(Html::normalize($text));
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.