You are here

public function CookieContentBlocker::getCssFiles in Cookie Content Blocker 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/CookieContentBlocker.php, line 47

Class

CookieContentBlocker
Defines the DraftText CKEditor plugin.

Namespace

Drupal\cookie_content_blocker\Plugin\CKEditorPlugin

Code

public function getCssFiles(Editor $editor) : array {
  return [
    $this->modulePath . '/js/plugins/cookiecontentblocker/css/editor.css',
  ];
}