public function HTMLRestrictions::getAllowedElements in Drupal 10
Gets allowed elements.
Parameters
bool $resolve_wildcards: (optional) Whether to resolve wildcards. Defaults to TRUE. When set to FALSE, the raw allowed elements will be returned (with no processing applied hence no resolved wildcards).
Return value
array
See also
\Drupal\filter\Plugin\FilterInterface::getHTMLRestrictions()
File
- core/
modules/ ckeditor5/ src/ HTMLRestrictions.php, line 1012
Class
- HTMLRestrictions
- Represents a set of HTML restrictions.
Namespace
Drupal\ckeditor5Code
public function getAllowedElements(bool $resolve_wildcards = TRUE) : array {
if ($resolve_wildcards) {
return self::resolveWildcards($this)->elements;
}
return $this->elements;
}