
| Current Path : /var/www/html/ift/web/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/ift/web/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaButton.php |
<?php
namespace Drupal\ckeditor_test\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginButtonsInterface;
/**
* Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature.
*
* @CKEditorPlugin(
* id = "llama_button",
* label = @Translation("Llama Button")
* )
*/
class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
/**
* {@inheritdoc}
*/
public function getButtons() {
return [
'Llama' => [
'label' => t('Insert Llama'),
],
];
}
/**
* {@inheritdoc}
*/
public function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';
}
}