You are here

public function HTMLRestrictions::getConcreteSubset in Drupal 10

Gets the subset of allowed elements whose tags are concrete.

Return value

\Drupal\ckeditor5\HTMLRestrictions The subset of the given set of HTML restrictions.

File

core/modules/ckeditor5/src/HTMLRestrictions.php, line 902

Class

HTMLRestrictions
Represents a set of HTML restrictions.

Namespace

Drupal\ckeditor5

Code

public function getConcreteSubset() : HTMLRestrictions {
  return new self(array_filter($this->elements, function (string $tag_name) {
    return !self::isWildcardTag($tag_name);
  }, ARRAY_FILTER_USE_KEY));
}