You are here

public function Glyphicons::getCssFiles in CKEditor Bootstrap Glyphicon 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

src/Plugin/CKEditorPlugin/Glyphicons.php, line 52

Class

Glyphicons
Defines the "glyphicons" plugin.

Namespace

Drupal\glyphicons\Plugin\CKEditorPlugin

Code

public function getCssFiles(Editor $editor) {
  return [
    $this
      ->getLibraryPath() . '/css/style.css',
  ];
}