You are here

public function DrupalEntity::getCssFiles in Entity Embed 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/DrupalEntity.php, line 62

Class

DrupalEntity
Defines the "drupalentity" plugin.

Namespace

Drupal\entity_embed\Plugin\CKEditorPlugin

Code

public function getCssFiles(Editor $editor) {
  return [
    drupal_get_path('module', 'system') . '/css/components/hidden.module.css',
    drupal_get_path('module', 'entity_embed') . '/css/entity_embed.editor.css',
  ];
}