SplitText.php in Paragraphs Features 8
File
src/Plugin/CKEditorPlugin/SplitText.php
View source
<?php
namespace Drupal\paragraphs_features\Plugin\CKEditorPlugin;
use Drupal\Core\Plugin\PluginBase;
use Drupal\ckeditor\CKEditorPluginInterface;
use Drupal\ckeditor\CKEditorPluginContextualInterface;
use Drupal\editor\Entity\Editor;
class SplitText extends PluginBase implements CKEditorPluginInterface, CKEditorPluginContextualInterface {
public function isInternal() {
return FALSE;
}
public function getDependencies(Editor $editor) {
return [];
}
public function getLibraries(Editor $editor) {
return [];
}
public function isEnabled(Editor $editor) {
return TRUE;
}
public function getFile() {
return drupal_get_path('module', 'paragraphs_features') . '/js/plugins/splittext/plugin.js';
}
public function getConfig(Editor $editor) {
return [];
}
}