Notification.php in CKEditor Upload Image 8.2
File
src/Plugin/CKEditorPlugin/Notification.php
View source
<?php
namespace Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin;
use Drupal\ckeditor\CKEditorPluginInterface;
use Drupal\Component\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
class Notification extends PluginBase implements CKEditorPluginInterface {
function getDependencies(Editor $editor) {
return [];
}
function getFile() {
$path = 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/plugin.js';
if (file_exists('profiles/' . \Drupal::installProfile() . "/{$path}")) {
return 'profiles/' . \Drupal::installProfile() . "/{$path}";
}
return $path;
}
function isInternal() {
return FALSE;
}
public function getConfig(Editor $editor) {
return [];
}
function getLibraries(Editor $editor) {
return [];
}
}