class Notification in CKEditor Upload Image 8
Same name and namespace in other branches
- 8.2 src/Plugin/CKEditorPlugin/Notification.php \Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\Notification
Defines the "templates" plugin.
Plugin annotation
@CKEditorPlugin(
id = "notification",
label = @Translation("CKEditor Notification"),
module = "ckeditor_uploadimage"
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\Notification implements CKEditorPluginInterface
Expanded class hierarchy of Notification
File
- src/
Plugin/ CKEditorPlugin/ Notification.php, line 22 - Contains \Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\Notification.
Namespace
Drupal\ckeditor_uploadimage\Plugin\CKEditorPluginView source
class Notification extends PluginBase implements CKEditorPluginInterface {
/**
* {@inheritdoc}
*/
function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
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;
}
/**
* {@inheritdoc}
*/
function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
function getLibraries(Editor $editor) {
return [];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Notification:: |
public | function |
Returns the additions to CKEDITOR.config for a specific CKEditor instance. Overrides CKEditorPluginInterface:: |
|
Notification:: |
function |
Returns a list of plugins this plugin requires. Overrides CKEditorPluginInterface:: |
||
Notification:: |
function |
Returns the Drupal root-relative file path to the plugin JavaScript file. Overrides CKEditorPluginInterface:: |
||
Notification:: |
function |
Returns a list of libraries this plugin requires. Overrides CKEditorPluginInterface:: |
||
Notification:: |
function |
Indicates if this plugin is part of the optimized CKEditor build. Overrides CKEditorPluginInterface:: |
||
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |