You are here

public function Language::getCssFiles in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php \Drupal\ckeditor\Plugin\CKEditorPlugin\Language::getCssFiles()

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/Language.php, line 130

Class

Language
Defines the "language" plugin.

Namespace

Drupal\ckeditor\Plugin\CKEditorPlugin

Code

public function getCssFiles(Editor $editor) {
  return [
    drupal_get_path('module', 'ckeditor') . '/css/plugins/language/ckeditor.language.css',
  ];
}