public function DrupalFontAwesome::getLibraries in Font Awesome Icons 8
Same name and namespace in other branches
- 8.2 src/Plugin/CKEditorPlugin/DrupalFontAwesome.php \Drupal\fontawesome\Plugin\CKEditorPlugin\DrupalFontAwesome::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/ DrupalFontAwesome.php, line 29
Class
- DrupalFontAwesome
- Defines the "drupalfontawesome" plugin.
Namespace
Drupal\fontawesome\Plugin\CKEditorPluginCode
public function getLibraries(Editor $editor) {
return [
'core/drupal.ajax',
];
}