You are here

public function IndentBlock::getCssFiles in CKEditor IndentBlock 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/IndentBlock.php, line 29

Class

IndentBlock
Defines the "Indent Block" plugin.

Namespace

Drupal\ckeditor_indentblock\Plugin\CKEditorPlugin

Code

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