You are here

CKEditorDiv.php in CKEditor Div Manager 8

File

src/Plugin/CKEditorPlugin/CKEditorDiv.php
View source
<?php

namespace Drupal\ckeditor_div_manager\Plugin\CKEditorPlugin;

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

/**
 * Defines the "div" plugin.
 *
 * @CKEditorPlugin(
 *   id = "div",
 *   label = @Translation("Div Container Manager")
 * )
 */
class CKEditorDiv extends CKEditorPluginBase {

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

  /**
   * {@inheritdoc}
   */
  public function getButtons() {
    return [
      'CreateDiv' => [
        'label' => $this
          ->t('Div Container Manager'),
        'image' => 'libraries/ckeditor/plugins/div/icons/creatediv.png',
      ],
    ];
  }

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

}

Classes

Namesort descending Description
CKEditorDiv Defines the "div" plugin.