LlamaButton.php in Drupal 8
File
core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php
View source
<?php
namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
public function getButtons() {
return [
'Llama' => [
'label' => t('Insert Llama'),
],
];
}
public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';
}
}
Classes
Name |
Description |
LlamaButton |
Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature. |