You are here

AjaxCKEditorPlugin.php in GeSHi Filter for syntax highlighting 8.2

Same filename and directory in other branches
  1. 8 codesnippetgeshi/src/Plugin/CKEditorPlugin/AjaxCKEditorPlugin.php

File

codesnippetgeshi/src/Plugin/CKEditorPlugin/AjaxCKEditorPlugin.php
View source
<?php

namespace Drupal\codesnippetgeshi\Plugin\CKEditorPlugin;

use Drupal\ckeditor\CKEditorPluginBase;
use Drupal\editor\Entity\Editor;

/**
 * Defines the "ajax" plugin.
 *
 * @CKEditorPlugin(
 *   id = "ajax",
 *   label = @Translation("Ajax ckeditor plugin")
 * )
 */
class AjaxCKEditorPlugin extends CKEditorPluginBase {

  /**
   * {@inheritdoc}
   */
  public function getButtons() {
    return [];
  }

  /**
   * {@inheritdoc}
   */
  public function getFile() {
    return 'libraries/ajax/plugin.js';
  }

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

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

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

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

}

Classes

Namesort descending Description
AjaxCKEditorPlugin Defines the "ajax" plugin.