3 namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
5 use Drupal\ckeditor\CKEditorPluginButtonsInterface;
8 * Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature.
11 * id = "llama_button",
12 * label = @Translation("Llama Button")
15 class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
20 public function getButtons() {
23 'label' => t('Insert Llama'),
31 public function getFile() {
32 return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';