WidgetTemplateMenu.php in CKEditor Widgets Bootstrap Grid 8
File
src/Plugin/CKEditorPlugin/WidgetTemplateMenu.php
View source
<?php
namespace Drupal\ckeditor_bootstrap_grid\Plugin\CKEditorPlugin;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginBase;
class WidgetTemplateMenu extends CKEditorPluginBase {
public function getFile() {
return drupal_get_path('module', 'ckeditor_bootstrap_grid') . '/js/plugins/widgettemplatemenu/plugin.js';
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
public function isInternal() {
return FALSE;
}
public function getButtons() {
return [
'WidgetTemplateMenu' => [
'image' => drupal_get_path('module', 'ckeditor_bootstrap_grid') . '/js/plugins/widgettemplatemenu/icons/widgettemplatemenu.png',
'label' => $this
->t('Add Template Menu'),
],
];
}
public function getConfig(Editor $editor) {
return [];
}
}