function HTMLRestrictions::getWildcardSubset
Same name in other branches
- 9 core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::getWildcardSubset()
- 11.x core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::getWildcardSubset()
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 1066
Class
- HTMLRestrictions
- Represents a set of HTML restrictions.
Namespace
Drupal\ckeditor5Code
public function getWildcardSubset() : HTMLRestrictions {
return new self(array_filter($this->elements, [
__CLASS__,
'isWildcardTag',
], ARRAY_FILTER_USE_KEY));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.