function HTMLRestrictions::unrestricted

Same name in other branches
  1. 9 core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::unrestricted()
  2. 11.x core/modules/ckeditor5/src/HTMLRestrictions.php \Drupal\ckeditor5\HTMLRestrictions::unrestricted()

Constructs an unrestricted set of HTML restrictions.

Return value

\Drupal\ckeditor5\HTMLRestrictions

1 call to HTMLRestrictions::unrestricted()
HTMLRestrictions::fromObjectWithHtmlRestrictions in core/modules/ckeditor5/src/HTMLRestrictions.php
Constructs a set of HTML restrictions matching the given object.

File

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

Class

HTMLRestrictions
Represents a set of HTML restrictions.

Namespace

Drupal\ckeditor5

Code

private static function unrestricted() : self {
    $restrictions = HTMLRestrictions::emptySet();
    $restrictions->unrestricted = TRUE;
    return $restrictions;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.