Find.php in CKEditor Find/Replace 8
File
src/Plugin/CKEditorPlugin/Find.php
View source
<?php
namespace Drupal\ckeditor_find\Plugin\CKEditorPlugin;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginBase;
class Find extends CKEditorPluginBase {
public function getFile() {
return 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/plugin.js';
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [
'ckeditor_find/styles',
];
}
public function isInternal() {
return FALSE;
}
public function getButtons() {
return [
'Find' => [
'label' => $this
->t('Find'),
'image' => 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/icons/find.png',
],
'Find RTL' => [
'label' => $this
->t('Find RTL'),
'image' => 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/icons/find-rtl.png',
],
'Replace' => [
'label' => $this
->t('Replace'),
'image' => 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/icons/replace.png',
],
];
}
public function getConfig(Editor $editor) {
return [];
}
}
Classes
Name |
Description |
Find |
Defines the "find" plugin. |