interface CKEditorPluginCssInterface in Drupal 8
Same name and namespace in other branches
- 9 core/modules/ckeditor/src/CKEditorPluginCssInterface.php \Drupal\ckeditor\CKEditorPluginCssInterface
Defines an interface for CKEditor plugins with associated CSS.
This allows a CKEditor plugin to add additional CSS in iframe CKEditor instances without needing to implement hook_ckeditor_css_alter().
Hierarchy
- interface \Drupal\Component\Plugin\PluginInspectionInterface
- interface \Drupal\ckeditor\CKEditorPluginInterface
- interface \Drupal\ckeditor\CKEditorPluginCssInterface
- interface \Drupal\ckeditor\CKEditorPluginInterface
Expanded class hierarchy of CKEditorPluginCssInterface
All classes that implement CKEditorPluginCssInterface
See also
\Drupal\ckeditor\CKEditorPluginInterface
\Drupal\ckeditor\CKEditorPluginButtonsInterface
\Drupal\ckeditor\CKEditorPluginContextualInterface
\Drupal\ckeditor\CKEditorPluginConfigurableInterface
\Drupal\ckeditor\CKEditorPluginBase
\Drupal\ckeditor\CKEditorPluginManager
\Drupal\ckeditor\Annotation\CKEditorPlugin
4 files declare their use of CKEditorPluginCssInterface
- DrupalImageCaption.php in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ DrupalImageCaption.php - DrupalMedia.php in core/
modules/ media/ src/ Plugin/ CKEditorPlugin/ DrupalMedia.php - Language.php in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ Language.php - LlamaCss.php in core/
modules/ ckeditor/ tests/ modules/ src/ Plugin/ CKEditorPlugin/ LlamaCss.php
File
- core/
modules/ ckeditor/ src/ CKEditorPluginCssInterface.php, line 22
Namespace
Drupal\ckeditorView source
interface CKEditorPluginCssInterface extends CKEditorPluginInterface {
/**
* 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.
*
* @param \Drupal\editor\Entity\Editor $editor
* A configured text editor object.
*
* @return string[]
* An array of CSS files. This is a flat list of file paths relative to
* the Drupal root.
*/
public function getCssFiles(Editor $editor);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CKEditorPluginCssInterface:: |
public | function | Retrieves enabled plugins' iframe instance CSS files. | 4 |
CKEditorPluginInterface:: |
public | function | Returns the additions to CKEDITOR.config for a specific CKEditor instance. | 9 |
CKEditorPluginInterface:: |
public | function | Returns a list of plugins this plugin requires. | 4 |
CKEditorPluginInterface:: |
public | function | Returns the Drupal root-relative file path to the plugin JavaScript file. | 9 |
CKEditorPluginInterface:: |
public | function | Returns a list of libraries this plugin requires. | 4 |
CKEditorPluginInterface:: |
public | function | Indicates if this plugin is part of the optimized CKEditor build. | 4 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |