NotificationAggregator.php in CKEditor Upload Image 8
File
src/Plugin/CKEditorPlugin/NotificationAggregator.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 NotificationAggregator extends PluginBase implements CKEditorPluginInterface {
function getDependencies(Editor $editor) {
return [];
}
function getFile() {
$path = 'libraries/ckeditor/plugins/' . $this
->getPluginId() . '/plugin.js';
if (file_exists('profiles/' . drupal_get_profile() . "/{$path}")) {
return 'profiles/' . drupal_get_profile() . "/{$path}";
}
return $path;
}
function isInternal() {
return FALSE;
}
public function getConfig(Editor $editor) {
return [];
}
function getLibraries(Editor $editor) {
return [];
}
}