function ListPlugin::getElementsSubset
Returns a configured subset of the elements supported by this plugin.
Return value
string[] An array of supported elements.
Overrides CKEditor5PluginElementsSubsetInterface::getElementsSubset
File
- 
              core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5Plugin/ ListPlugin.php, line 81  
Class
- ListPlugin
 - CKEditor 5 List plugin.
 
Namespace
Drupal\ckeditor5\Plugin\CKEditor5PluginCode
public function getElementsSubset() : array {
  $subset = $this->getPluginDefinition()
    ->getElements();
  $subset = array_diff($subset, [
    '<ol reversed start>',
  ]);
  $reversed_enabled = $this->getConfiguration()['reversed'];
  $start_index_enabled = $this->getConfiguration()['startIndex'];
  $subset[] = "<ol" . ($reversed_enabled ? ' reversed' : '') . ($start_index_enabled ? ' start' : '') . '>';
  return $subset;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.