class CKEditorPlugin

Same name and namespace in other branches
  1. 8.9.x core/modules/ckeditor/src/Annotation/CKEditorPlugin.php \Drupal\ckeditor\Annotation\CKEditorPlugin

Defines a CKEditorPlugin annotation object.

Plugin Namespace: Plugin\CKEditorPlugin

For a working example, see \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalImage

Hierarchy

Expanded class hierarchy of CKEditorPlugin

See also

\Drupal\ckeditor\CKEditorPluginInterface

\Drupal\ckeditor\CKEditorPluginBase

\Drupal\ckeditor\CKEditorPluginManager

hook_ckeditor_plugin_info_alter()

Plugin API

Related topics

11 classes are annotated with CKEditorPlugin
DrupalImage in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
Defines the "drupalimage" plugin.
DrupalImageCaption in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
Defines the "drupalimagecaption" plugin.
DrupalLink in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php
Defines the "drupallink" plugin.
Internal in core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.php
Defines the "internal" plugin (i.e. core plugins part of our CKEditor build).
Language in core/modules/ckeditor/src/Plugin/CKEditorPlugin/Language.php
Defines the "language" plugin.

... See full list

File

core/modules/ckeditor/src/Annotation/CKEditorPlugin.php, line 22

Namespace

Drupal\ckeditor\Annotation
View source
class CKEditorPlugin extends Plugin {
  
  /**
   * The plugin ID.
   *
   * This MUST match the name of the CKEditor plugin itself (written in
   * JavaScript). Otherwise CKEditor will throw JavaScript errors when it runs,
   * because it fails to load this CKEditor plugin.
   *
   * @var string
   */
  public $id;
  
  /**
   * The human-readable name of the CKEditor plugin.
   *
   * @ingroup plugin_translatable
   *
   * @var \Drupal\Core\Annotation\Translation
   */
  public $label;

}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.