You are here

public function CKEditor5PluginDefinition::hasToolbarItems in Drupal 10

Whether this plugin has toolbar items.

Return value

bool

See also

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

File

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

Class

CKEditor5PluginDefinition
Provides an implementation of a CKEditor 5 plugin definition.

Namespace

Drupal\ckeditor5\Plugin

Code

public function hasToolbarItems() : bool {
  return $this
    ->getToolbarItems() !== [];
}