
| Current Path : /var/www/html/vendor/chi-teck/drupal-code-generator/templates/plugin/ckeditor/ |
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/vendor/chi-teck/drupal-code-generator/templates/plugin/ckeditor/ckeditor.twig |
<?php
namespace Drupal\{{ machine_name }}\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
/**
* Defines the "{{ plugin_label }}" plugin.
*
* @CKEditorPlugin(
* id = "{{ plugin_id }}",
* label = @Translation("{{ plugin_label }}"),
* module = "{{ machine_name }}"
* )
*/
class {{ class }} extends CKEditorPluginBase {
/**
* {@inheritdoc}
*/
public function getFile() {
return $this->getModulePath('{{ machine_name }}') . '/js/plugins/example/plugin.js';
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getButtons() {
return [
'{{ short_plugin_id }}' => [
'label' => $this->t('{{ plugin_label }}'),
'image' => $this->getModulePath('{{ machine_name }}') . '/js/plugins/example/icons/example.png',
],
];
}
}