function CKEditor5PluginDefinition::hasLibrary

Same name and namespace in other branches
  1. 11.x core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::hasLibrary()

Whether this plugin has an asset library to load.

Return value

bool

See also

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

File

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

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;
}

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