public function HTMLRestrictions::allowsNothing in Drupal 10
Whether this set of HTML restrictions allows nothing.
Return value
bool
See also
::emptySet()
File
- core/
modules/ ckeditor5/ src/ HTMLRestrictions.php, line 271
Class
- HTMLRestrictions
- Represents a set of HTML restrictions.
Namespace
Drupal\ckeditor5Code
public function allowsNothing() : bool {
return count($this->elements) === 0 || count($this->elements) === 1 && isset($this->elements['*']) && empty(array_filter($this->elements['*']));
}