function FilterNull::getHTMLRestrictions

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

Overrides FilterBase::getHTMLRestrictions

File

core/modules/filter/src/Plugin/Filter/FilterNull.php, line 53

Class

FilterNull
Provides a fallback placeholder filter to use for missing filters.

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.