PageBreak.php in CKEditor PageBreak 8
File
src/Plugin/CKEditorPlugin/PageBreak.php
View source
<?php
namespace Drupal\pagebreak\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class PageBreak extends CKEditorPluginBase {
public function getFile() {
return 'libraries/pagebreak/plugin.js';
}
public function getDependencies(Editor $editor) {
return [
'fakeobjects',
];
}
public function getConfig(Editor $editor) {
return [];
}
public function getButtons() {
return [
'PageBreak' => [
'label' => $this
->t('PageBreak'),
'image' => 'libraries/pagebreak/icons/pagebreak.png',
],
];
}
}