You are here

class Notification in CKEditor Upload Image 8

Same name and namespace in other branches
  1. 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

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\CKEditorPlugin
View 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

Namesort descending Modifiers Type Description Overrides
Notification::getConfig public function Returns the additions to CKEDITOR.config for a specific CKEditor instance. Overrides CKEditorPluginInterface::getConfig
Notification::getDependencies function Returns a list of plugins this plugin requires. Overrides CKEditorPluginInterface::getDependencies
Notification::getFile function Returns the Drupal root-relative file path to the plugin JavaScript file. Overrides CKEditorPluginInterface::getFile
Notification::getLibraries function Returns a list of libraries this plugin requires. Overrides CKEditorPluginInterface::getLibraries
Notification::isInternal function Indicates if this plugin is part of the optimized CKEditor build. Overrides CKEditorPluginInterface::isInternal
PluginBase::$configuration protected property Configuration information passed into the plugin. 1
PluginBase::$pluginDefinition protected property The plugin implementation definition. 1
PluginBase::$pluginId protected property The plugin_id.
PluginBase::DERIVATIVE_SEPARATOR constant A string which is used to separate base plugin IDs from the derivative ID.
PluginBase::getBaseId public function Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface::getBaseId
PluginBase::getDerivativeId public function Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface::getDerivativeId
PluginBase::getPluginDefinition public function Gets the definition of the plugin implementation. Overrides PluginInspectionInterface::getPluginDefinition 3
PluginBase::getPluginId public function Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface::getPluginId
PluginBase::isConfigurable public function Determines if the plugin is configurable.
PluginBase::__construct public function Constructs a \Drupal\Component\Plugin\PluginBase object. 92