function CKEditor5PluginDefinition::getAdminLibrary
Same name in other branches
- 9 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::getAdminLibrary()
- 10 core/modules/ckeditor5/src/Plugin/CKEditor5PluginDefinition.php \Drupal\ckeditor5\Plugin\CKEditor5PluginDefinition::getAdminLibrary()
Gets the asset library this plugin needs to be loaded on the admin UI.
Return value
string An asset library ID.
Throws
\LogicException When called on a plugin definition that has no admin library.
See also
\Drupal\ckeditor5\Annotation\DrupalAspectsOfCKEditor5Plugin::$admin_library
File
-
core/
modules/ ckeditor5/ src/ Plugin/ CKEditor5PluginDefinition.php, line 453
Class
- CKEditor5PluginDefinition
- Provides an implementation of a CKEditor 5 plugin definition.
Namespace
Drupal\ckeditor5\PluginCode
public function getAdminLibrary() : string {
if (!$this->hasAdminLibrary()) {
throw new \LogicException('::getAdminLibrary() should only be called if ::hasAdminLibrary() returns TRUE.');
}
return $this->drupal['admin_library'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.