class CKEditorPlugin in Drupal 9
Same name and namespace in other branches
- 8 core/modules/ckeditor/src/Annotation/CKEditorPlugin.php \Drupal\ckeditor\Annotation\CKEditorPlugin
- 10 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
- class \Drupal\Component\Annotation\Plugin implements AnnotationInterface
- class \Drupal\ckeditor\Annotation\CKEditorPlugin
Expanded class hierarchy of CKEditorPlugin
See also
\Drupal\ckeditor\CKEditorPluginInterface
\Drupal\ckeditor\CKEditorPluginBase
\Drupal\ckeditor\CKEditorPluginManager
hook_ckeditor_plugin_info_alter()
Related topics
9 classes are annotated with CKEditorPlugin
- DrupalImage in core/
modules/ ckeditor/ src/ Plugin/ CKEditorPlugin/ DrupalImage.php - Defines the "drupalimage" 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.
- LlamaButton in core/
modules/ ckeditor/ tests/ modules/ src/ Plugin/ CKEditorPlugin/ LlamaButton.php - Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature.
File
- core/
modules/ ckeditor/ src/ Annotation/ CKEditorPlugin.php, line 22
Namespace
Drupal\ckeditor\AnnotationView 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;
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CKEditorPlugin:: |
public | property | The plugin ID. | |
CKEditorPlugin:: |
public | property | The human-readable name of the CKEditor plugin. | |
Plugin:: |
protected | property | The plugin definition read from the class annotation. | 1 |
Plugin:: |
public | function |
Gets the value of an annotation. Overrides AnnotationInterface:: |
5 |
Plugin:: |
public | function |
Gets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the unique ID for this annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Gets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
1 |
Plugin:: |
protected | function | Parses an annotation into its definition. | |
Plugin:: |
public | function |
Sets the class of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function |
Sets the name of the provider of the annotated class. Overrides AnnotationInterface:: |
|
Plugin:: |
public | function | Constructs a Plugin object. | 2 |