public function A11yCheckerPlugin::getLibraries in CKEditor Accessibility Checker 8
Same name and namespace in other branches
- 7 src/Plugin/CKEditorPlugin/A11yCheckerPlugin.php \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin::getLibraries()
- 2.0.x src/Plugin/CKEditorPlugin/A11yCheckerPlugin.php \Drupal\ckeditor_a11ychecker\Plugin\CKEditorPlugin\A11yCheckerPlugin::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 CKEditorPluginBase::getLibraries
File
- src/
Plugin/ CKEditorPlugin/ A11yCheckerPlugin.php, line 30
Class
- A11yCheckerPlugin
- Defines the "a11ychecker" plugin.
Namespace
Drupal\ckeditor_a11ychecker\Plugin\CKEditorPluginCode
public function getLibraries(Editor $editor) {
return [
'core/drupal.jquery',
];
}