public function DrupalImageCaption::getCssFiles in Drupal 8
Retrieves enabled plugins' iframe instance CSS files.
Note: this does not use a Drupal asset library because this CSS will be loaded by CKEditor, not by Drupal.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
string[] An array of CSS files. This is a flat list of file paths relative to the Drupal root.
Overrides CKEditorPluginCssInterface::getCssFiles
File
- core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ DrupalImageCaption.php, line 71
Class
- DrupalImageCaption
- Defines the "drupalimagecaption" plugin.
Namespace
Drupal\ckeditor\Plugin\CKEditorPluginCode
public function getCssFiles(Editor $editor) {
return [
drupal_get_path('module', 'ckeditor') . '/css/plugins/drupalimagecaption/ckeditor.drupalimagecaption.css',
];
}