function CKEditor5PluginDefinition::hasAdminLibrary
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::hasAdminLibrary()
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::hasAdminLibrary()
Whether this plugin has an asset library to load on the admin UI.
Return value
bool TRUE if the plugin has an asset library to load on the admin UI, FALSE otherwise.
See also
\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$admin_library
1 call to CKEditor5PluginDefinition::hasAdminLibrary()
- CKEditor5PluginDefinition::getAdminLibrary in core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php - Gets the asset library this plugin needs to be loaded on the admin UI.
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php, line 474
Class
- CKEditor5PluginDefinition
- Provides an implementation of a CKEditor 5 plugin definition.
Namespace
Drupal\ckeditor5\PluginCode
public function hasAdminLibrary() : bool {
return $this->drupal['admin_library'] !== FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.