function HTMLRestrictions::emptySet
Creates the empty set of HTML restrictions: nothing is allowed.
Return value
\Drupal\ckeditor5\HTMLRestrictions
4 calls to HTMLRestrictions::emptySet()
- CKEditor5PluginManager::getProvidedElements in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php - HTMLRestrictions::unrestricted in core/
modules/ ckeditor5/ src/ HTMLRestrictions.php - Constructs an unrestricted set of HTML restrictions.
- SmartDefaultSettings::addToolbarItemsToMatchHtmlElementsInFormat in core/
modules/ ckeditor5/ src/ SmartDefaultSettings.php - Adds CKEditor 5 toolbar items to match the format's HTML elements.
- SmartDefaultSettings::computeSmartDefaultSettings in core/
modules/ ckeditor5/ src/ SmartDefaultSettings.php - Computes the closest possible equivalent settings for switching to CKEditor 5.
File
-
core/
modules/ ckeditor5/ src/ HTMLRestrictions.php, line 397
Class
- HTMLRestrictions
- Represents a set of HTML restrictions.
Namespace
Drupal\ckeditor5Code
public static function emptySet() : HTMLRestrictions {
return new self([]);
}