Anchor.php in Panopoly 8.2
File
modules/panopoly/panopoly_wysiwyg/src/Plugin/CKEditorPlugin/Anchor.php
View source
<?php
namespace Drupal\panopoly_wysiwyg\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class Anchor extends CKEditorPluginBase {
public function getButtons() {
return [
'panopoly_wysiwyg_anchor' => [
'label' => t('Anchor'),
'image' => drupal_get_path('module', 'panopoly_wysiwyg') . '/ckeditor/anchor/icons/anchor.png',
],
];
}
public function getFile() {
return drupal_get_path('module', 'panopoly_wysiwyg') . '/ckeditor/anchor/plugin.js';
}
public function isInternal() {
return FALSE;
}
public function getDependencies(Editor $editor) {
return [
'fakeobjects',
];
}
public function getLibraries(Editor $editor) {
return [];
}
public function getConfig(Editor $editor) {
return [];
}
}
Classes
Name |
Description |
Anchor |
Defines the "panopoly_wysiwyg_anchor" plugin. |