CKEditorBSGrid.php in CKEditor Bootstrap Grid 8.2
File
src/Plugin/CKEditorPlugin/CKEditorBSGrid.php
View source
<?php
namespace Drupal\ckeditor_bs_grid\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class CKEditorBSGrid extends CKEditorPluginBase {
public function getButtons() {
$path = drupal_get_path('module', 'ckeditor_bs_grid') . '/js/bs_grid';
return [
'bs_grid' => [
'label' => t('Bootstrap Grid'),
'image' => $path . '/icons/bs_grid.png',
],
];
}
public function getFile() {
return drupal_get_path('module', 'ckeditor_bs_grid') . '/js/bs_grid/plugin.js';
}
public function isInternal() {
return FALSE;
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
public function getConfig(Editor $editor) {
return [];
}
}