class LlamaCss

Defines a "LlamaCss" plugin, with an associated "llama" CSS.

Plugin annotation


@CKEditorPlugin(
  id = "llama_css",
  label = @Translation("Llama CSS")
)

Hierarchy

Expanded class hierarchy of LlamaCss

3 string references to 'LlamaCss'
CKEditorPluginManagerTest::testCssFiles in core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
Tests the iframe instance CSS files of plugins.
CKEditorPluginManagerTest::testEnabledPlugins in core/modules/ckeditor/tests/src/Kernel/CKEditorPluginManagerTest.php
Tests the enabling of plugins.
CKEditorTest::testBuildContentsCssJSSetting in core/modules/ckeditor/tests/src/Kernel/CKEditorTest.php
Tests CKEditor::buildContentsCssJSSetting().

File

core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php, line 17

Namespace

Drupal\ckeditor_test\Plugin\CKEditorPlugin
View source
class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditorPluginCssInterface {
  
  /**
   * {@inheritdoc}
   */
  public function getButtons() {
    return [
      'LlamaCSS' => [
        'label' => $this->t('Insert Llama CSS'),
      ],
    ];
  }
  
  /**
   * {@inheritdoc}
   */
  public function getCssFiles(Editor $editor) {
    return [
      $this->moduleList
        ->getPath('ckeditor_test') . '/css/llama.css',
    ];
  }
  
  /**
   * {@inheritdoc}
   */
  public function getFile() {
    return $this->moduleList
      ->getPath('ckeditor_test') . '/js/llama_css.js';
  }

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.