function HTMLRestrictions::getHtml5ElementList

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

Gets a list of all known HTML5 elements.

Return value

string[] An array of HTML5 element tags.

File

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

Class

HTMLRestrictions
Represents a set of HTML restrictions.

Namespace

Drupal\ckeditor5

Code

private static function getHtml5ElementList() : array {
    return array_keys(Elements::$html5);
}

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