Boxout.php in Boxout 8
File
src/Plugin/CKEditorPlugin/Boxout.php
View source
<?php
namespace Drupal\boxout\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class Boxout extends CKEditorPluginBase {
private function path() {
return drupal_get_path('module', 'boxout');
}
public function getDependencies(Editor $editor) {
return array();
}
public function getLibraries(Editor $editor) {
return array();
}
public function isInternal() {
return FALSE;
}
public function getFile() {
return $this
->path() . "/js/plugins/boxout/plugin.js";
}
public function getConfig(Editor $editor) {
return array(
'boxout_dialog_title_insert' => $this
->t('Insert Boxout'),
);
}
public function getButtons() {
return array(
'Boxout' => array(
'label' => $this
->t('Boxout'),
'image' => $this
->path() . '/js/plugins/boxout/boxout.png',
),
);
}
}
Classes
Name |
Description |
Boxout |
Defines the "Boxout" plugin. |