You are here

public function HTMLRestrictions::getWildcardSubset in Drupal 10

Gets the subset of allowed elements whose tags are wildcards.

Return value

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

File

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

Class

HTMLRestrictions
Represents a set of HTML restrictions.

Namespace

Drupal\ckeditor5

Code

public function getWildcardSubset() : HTMLRestrictions {
  return new self(array_filter($this->elements, [
    __CLASS__,
    'isWildcardTag',
  ], ARRAY_FILTER_USE_KEY));
}