function HTMLRestrictions::emptySet
Same name and namespace in other branches
- 10 core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::emptySet()
- 9 core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::emptySet()
Creates the empty set of HTML restrictions: nothing is allowed.
Return value
\Drupal\ckeditor5\HTMLRestrictions The empty set of HTML restrictions.
7 calls to HTMLRestrictions::emptySet()
- CKEditor5PluginManager::getProvidedElements in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginManager.php - Gets all supported elements for the given plugins and text editor.
- HTMLRestrictions::unrestricted in core/
modules/ ckeditor5/ src/ HTMLRestrictions.php - Constructs an unrestricted set of HTML restrictions.
- HTMLRestrictionsTest::providerOperands in core/
modules/ ckeditor5/ tests/ src/ Unit/ HTMLRestrictionsTest.php - Provides data to testOperations().
- HTMLRestrictionsTest::providerRepresentations in core/
modules/ ckeditor5/ tests/ src/ Unit/ HTMLRestrictionsTest.php - Provides data to testRepresentations().
- SmartDefaultSettings::addToolbarItemsToMatchHtmlElementsInFormat in core/
modules/ ckeditor5/ src/ SmartDefaultSettings.php - Adds CKEditor 5 toolbar items to match the format's HTML elements.
File
-
core/
modules/ ckeditor5/ src/ HTMLRestrictions.php, line 398
Class
- HTMLRestrictions
- Represents a set of HTML restrictions.
Namespace
Drupal\ckeditor5Code
public static function emptySet() : HTMLRestrictions {
return new self([]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.