function FilterHtmlEscape::getHTMLRestrictions

Same name in other branches
  1. 8.9.x core/modules/filter/src/Plugin/Filter/FilterHtmlEscape.php \Drupal\filter\Plugin\Filter\FilterHtmlEscape::getHTMLRestrictions()
  2. 10 core/modules/filter/src/Plugin/Filter/FilterHtmlEscape.php \Drupal\filter\Plugin\Filter\FilterHtmlEscape::getHTMLRestrictions()
  3. 11.x core/modules/filter/src/Plugin/Filter/FilterHtmlEscape.php \Drupal\filter\Plugin\Filter\FilterHtmlEscape::getHTMLRestrictions()

Overrides FilterBase::getHTMLRestrictions

File

core/modules/filter/src/Plugin/Filter/FilterHtmlEscape.php, line 30

Class

FilterHtmlEscape
Provides a filter to display any HTML as plain text.

Namespace

Drupal\filter\Plugin\Filter

Code

public function getHTMLRestrictions() {
    // Nothing is allowed.
    return [
        'allowed' => [],
    ];
}

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