3 namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
5 use Drupal\ckeditor\CKEditorPluginInterface;
6 use Drupal\Component\Plugin\PluginBase;
7 use Drupal\editor\Entity\Editor;
10 * Defines the "Llama" plugin, with a CKEditor "llama" feature.
12 * This feature does not correspond to a toolbar button. Because this plugin
13 * does not implement the CKEditorPluginContextualInterface nor the
14 * CKEditorPluginButtonsInterface interface, there is no way of actually loading
17 * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaContextual
18 * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaButton
19 * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaContextualAndButton
20 * @see \Drupal\ckeditor_test\Plugin\CKEditorPlugin\LlamaCss
24 * label = @Translation("Llama")
27 class Llama extends PluginBase implements CKEditorPluginInterface {
32 public function getDependencies(Editor $editor) {
39 public function getLibraries(Editor $editor) {
46 public function isInternal() {
53 public function getFile() {
54 return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
60 public function getConfig(Editor $editor) {