"Fossies" - the Fresh Open Source Software Archive

Member "drupal-8.9.10/core/modules/ckeditor/src/CKEditorPluginCssInterface.php" (26 Nov 2020, 1214 Bytes) of package /linux/www/drupal-8.9.10.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "CKEditorPluginCssInterface.php" see the Fossies "Dox" file reference documentation.

    1 <?php
    2 
    3 namespace Drupal\ckeditor;
    4 
    5 use Drupal\editor\Entity\Editor;
    6 
    7 /**
    8  * Defines an interface for CKEditor plugins with associated CSS.
    9  *
   10  * This allows a CKEditor plugin to add additional CSS in iframe CKEditor
   11  * instances without needing to implement hook_ckeditor_css_alter().
   12  *
   13  * @see \Drupal\ckeditor\CKEditorPluginInterface
   14  * @see \Drupal\ckeditor\CKEditorPluginButtonsInterface
   15  * @see \Drupal\ckeditor\CKEditorPluginContextualInterface
   16  * @see \Drupal\ckeditor\CKEditorPluginConfigurableInterface
   17  * @see \Drupal\ckeditor\CKEditorPluginBase
   18  * @see \Drupal\ckeditor\CKEditorPluginManager
   19  * @see \Drupal\ckeditor\Annotation\CKEditorPlugin
   20  * @see plugin_api
   21  */
   22 interface CKEditorPluginCssInterface extends CKEditorPluginInterface {
   23 
   24   /**
   25    * Retrieves enabled plugins' iframe instance CSS files.
   26    *
   27    * Note: this does not use a Drupal asset library because this CSS will be
   28    * loaded by CKEditor, not by Drupal.
   29    *
   30    * @param \Drupal\editor\Entity\Editor $editor
   31    *   A configured text editor object.
   32    *
   33    * @return string[]
   34    *   An array of CSS files. This is a flat list of file paths relative to
   35    *   the Drupal root.
   36    */
   37   public function getCssFiles(Editor $editor);
   38 
   39 }