function HTMLRestrictions::emptySet

Same name in other branches
  1. 9 core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::emptySet()
  2. 10 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

8 calls to HTMLRestrictions::emptySet()
CKEditor5PluginManager::getProvidedElements in core/modules/ckeditor5/src/Plugin/CKEditor5PluginManager.php
CKEditor5UpdateImageToolbarItemTest::test in core/modules/ckeditor5/tests/src/Functional/Update/CKEditor5UpdateImageToolbarItemTest.php
Tests that `uploadImage` toolbar item is updated to `drupalInsertImage`.
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
HTMLRestrictionsTest::providerRepresentations in core/modules/ckeditor5/tests/src/Unit/HTMLRestrictionsTest.php

... See full list

File

core/modules/ckeditor5/src/HTMLRestrictions.php, line 397

Class

HTMLRestrictions
Represents a set of HTML restrictions.

Namespace

Drupal\ckeditor5

Code

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.