function FilterNull::getHTMLRestrictions

Overrides FilterBase::getHTMLRestrictions

File

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

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.