You are here

public function DrupalMedia::getCssFiles in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/src/Plugin/CKEditorPlugin/DrupalMedia.php \Drupal\media\Plugin\CKEditorPlugin\DrupalMedia::getCssFiles()

@todo Improve this in https://www.drupal.org/project/drupal/issues/3072063

Overrides CKEditorPluginCssInterface::getCssFiles

File

core/modules/media/src/Plugin/CKEditorPlugin/DrupalMedia.php, line 123

Class

DrupalMedia
Defines the "drupalmedia" plugin.

Namespace

Drupal\media\Plugin\CKEditorPlugin

Code

public function getCssFiles(Editor $editor) {
  return [
    $this->moduleExtensionList
      ->getPath('media') . '/css/plugins/drupalmedia/ckeditor.drupalmedia.css',
    $this->moduleExtensionList
      ->getPath('system') . '/css/components/hidden.module.css',
  ];
}