LlamaCss.php in Drupal 8
File
core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaCss.php
View source
<?php
namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
use Drupal\ckeditor\CKEditorPluginCssInterface;
use Drupal\editor\Entity\Editor;
class LlamaCss extends Llama implements CKEditorPluginButtonsInterface, CKEditorPluginCssInterface {
public function getButtons() {
return [
'LlamaCSS' => [
'label' => t('Insert Llama CSS'),
],
];
}
public function getCssFiles(Editor $editor) {
return [
drupal_get_path('module', 'ckeditor_test') . '/css/llama.css',
];
}
public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_css.js';
}
}
Classes
Name |
Description |
LlamaCss |
Defines a "LlamaCss" plugin, with an associated "llama" CSS. |