You are here

public function CkeditorTableSelection::getCssFiles in CKEditor Table Selection 8

Same name and namespace in other branches
  1. 9.1.x src/Plugin/CKEditorPlugin/CkeditorTableSelection.php \Drupal\ckeditor_tableselection\Plugin\CKEditorPlugin\CkeditorTableSelection::getCssFiles()
  2. 2.0.x src/Plugin/CKEditorPlugin/CkeditorTableSelection.php \Drupal\ckeditor_tableselection\Plugin\CKEditorPlugin\CkeditorTableSelection::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

src/Plugin/CKEditorPlugin/CkeditorTableSelection.php, line 76

Class

CkeditorTableSelection
Defines the "Table Selection" plugin.

Namespace

Drupal\ckeditor_tableselection\Plugin\CKEditorPlugin

Code

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