function Heading::getEnabledHeadings

Same name in other branches
  1. 9 core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading::getEnabledHeadings()
  2. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Heading::getEnabledHeadings()

Gets all enabled headings.

Return value

string[] The values in the plugins.ckeditor5_heading.enabled_headings configuration plus the headings that are always enabled.

1 call to Heading::getEnabledHeadings()
Heading::getDynamicPluginConfig in core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php
Filters the header options to those chosen in editor config.

File

core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Heading.php, line 82

Class

Heading
CKEditor 5 Heading plugin.

Namespace

Drupal\ckeditor5\Plugin\CKEditor5Plugin

Code

private function getEnabledHeadings() : array {
    return array_merge(self::ALWAYS_ENABLED_HEADINGS, $this->configuration['enabled_headings']);
}

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