Notification.php in CKEditor Media Embed Plugin 8
File
src/Plugin/CKEditorPlugin/Notification.phpView source
<?php
namespace Drupal\ckeditor_media_embed\Plugin\CKEditorPlugin;
use Drupal\ckeditor_media_embed\AssetManager;
use Drupal\Core\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;
use Drupal\ckeditor\CKEditorPluginInterface;
/**
* Defines the "Notification" plugin.
*
* @CKEditorPlugin(
* id = "notification",
* label = @Translation("Notification"),
* module = "ckeditor_media_embed"
* )
*/
class Notification extends PluginBase implements CKEditorPluginInterface {
/**
* {@inheritdoc}
*/
public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getFile() {
return AssetManager::getCKEditorLibraryPluginPath() . $this
->getPluginId() . '/plugin.js';
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [];
}
}
Classes
Name | Description |
---|---|
Notification | Defines the "Notification" plugin. |