Footnotes.php in Footnotes 8.2
File
src/Plugin/CKEditorPlugin/Footnotes.php
View source
<?php
namespace Drupal\footnotes\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
use Drupal\Core\StringTranslation\StringTranslationTrait;
class Footnotes extends CKEditorPluginBase {
use StringTranslationTrait;
public function getDependencies(Editor $editor) {
return [
'fakeobjects',
];
}
public function getFile() {
return drupal_get_path('module', 'footnotes') . '/assets/js/ckeditor/plugin.js';
}
public function getButtons() {
return [
'footnotes' => [
'label' => $this
->t('Footnotes'),
'image' => drupal_get_path('module', 'footnotes') . '/assets/js/ckeditor/icons/footnotes.png',
],
];
}
public function getConfig(Editor $editor) {
return [];
}
}