You are here

public function CKEditor5PluginDefinition::hasLibrary in Drupal 10

Whether this plugin has an asset library to load.

Return value

bool

See also

\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$library

1 call to CKEditor5PluginDefinition::hasLibrary()
CKEditor5PluginDefinition::getLibrary in core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php
Gets the asset library this plugin needs to be loaded.

File

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

Class

CKEditor5PluginDefinition
Provides an implementation of a CKEditor 5 plugin definition.

Namespace

Drupal\ckeditor5\Plugin

Code

public function hasLibrary() : bool {
  return $this->drupal['library'] !== FALSE;
}