function CKEditor5PluginDefinition::getToolbarItems

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

Gets the list of toolbar items this plugin provides.

Return value

array[] An array of toolbar items.

See also

\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$toolbar_items

1 call to CKEditor5PluginDefinition::getToolbarItems()
CKEditor5PluginDefinition::hasToolbarItems in core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php
Whether this plugin has toolbar items.

File

core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php, line 398

Class

CKEditor5PluginDefinition
Provides an implementation of a CKEditor 5 plugin definition.

Namespace

Drupal\ckeditor5\Plugin

Code

public function getToolbarItems() : array {
    return $this->drupal['toolbar_items'];
}

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