FilterFormatInterface::getHtmlRestrictions

public FilterFormatInterface::getHtmlRestrictions()

Retrieve all HTML restrictions (tags and attributes) for the text format.

Note that restrictions applied to the "*" tag (the wildcard tag, i.e. all tags) are treated just like any other HTML tag. That means that any restrictions applied to it are not automatically applied to all other tags. It is up to the caller to handle this in whatever way it sees fit; this way no information granularity is lost.

Return value

array|false A structured array as returned by FilterInterface::getHTMLRestrictions(), but with the intersection of all filters in this text format. Will either indicate blacklisting of tags or whitelisting of tags. In the latter case, it's possible that restrictions on attributes are also stored. FALSE means there are no HTML restrictions.

File

core/modules/filter/src/FilterFormatInterface.php, line 80

Class

FilterFormatInterface
Provides an interface defining a filter format entity.

Namespace

Drupal\filter

Code

public function getHtmlRestrictions();
doc_Drupal
2016-10-29 09:14:45
Comments
Leave a Comment

Please login to continue.