public function DetailPlugin::getLibraries in CKeditor Details Accordion 8
Same name and namespace in other branches
- 2.x src/Plugin/CKEditorPlugin/DetailPlugin.php \Drupal\ckeditor_details\Plugin\CKEditorPlugin\DetailPlugin::getLibraries()
Returns a list of libraries this plugin requires.
These libraries will be attached to the text_format element on which the editor is being loaded.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
array An array of libraries suitable for usage in a render API #attached property.
Overrides CKEditorPluginInterface::getLibraries
File
- src/
Plugin/ CKEditorPlugin/ DetailPlugin.php, line 30
Class
- DetailPlugin
- Defines the "detail" plugin.
Namespace
Drupal\ckeditor_details\Plugin\CKEditorPluginCode
public function getLibraries(Editor $editor) {
return [
'core/drupal.jquery',
];
}