openfed-8.x-8.5/modules/d10_compatibility/ckeditor_uploadimage/src/Plugin/CKEditorPlugin/NotificationAggregator.php

modules/d10_compatibility/ckeditor_uploadimage/src/Plugin/CKEditorPlugin/NotificationAggregator.php
<?php
/**
 * @file
 * Contains \Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin\NotificationAggregator.
 */

namespace Drupal\ckeditor_uploadimage\Plugin\CKEditorPlugin;

use Drupal\ckeditor\CKEditorPluginInterface;
use Drupal\Component\Plugin\PluginBase;
use Drupal\editor\Entity\Editor;

/**
 * Defines the "templates" plugin.
 *
 * @CKEditorPlugin(
 *   id = "notificationaggregator",
 *   label = @Translation("CKEditor Notification Aggregator"),
 *   module = "ckeditor_uploadimage"
 * )
 */
class NotificationAggregator 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::installProfile() . "/$path")) {
      return 'profiles/' . \Drupal::installProfile() . "/$path";
    }
    return $path;
  }

  /**
   * {@inheritdoc}
   */
  function isInternal() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getConfig(Editor $editor) {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  function getLibraries(Editor $editor) {
    return [];
  }
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc