Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. HTMLRestrictions.php

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\ckeditor5

Code

public static function emptySet() : HTMLRestrictions {
    return new self([]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal