NoFollow.php in Ckeditor Nofollow 8
File
src/Plugin/CKEditorPlugin/NoFollow.php
View source
<?php
namespace Drupal\ckeditor_nofollow\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;
class Nofollow extends CKEditorPluginBase {
public function getFile() {
return drupal_get_path('module', 'ckeditor_nofollow') . '/js/plugins/nofollow/plugin.js';
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
public function isInternal() {
return FALSE;
}
public function getButtons() {
$iconImage = drupal_get_path('module', 'ckeditor_nofollow') . '/js/plugins/nofollow/icons/nofollow.png';
return [
'nofollow' => [
'label' => t('No follow'),
'image' => $iconImage,
],
];
}
public function isEnabled(Editor $editor) {
}
public function getConfig(Editor $editor) {
return [];
}
}
Classes
Name |
Description |
Nofollow |
Defines the "Ckeditor Nofollow" plugin. |