Defines the "Llama" plugin, with a CKEditor "llama" feature.
This feature does not correspond to a toolbar button. Because this plugin does not implement the CKEditorPluginContextualInterface nor the CKEditorPluginButtonsInterface interface, there is no way of actually loading this plugin.
@CKEditorPlugin(
id = "llama",
label = @Translation("Llama")
)
Expanded class hierarchy of Llama
MetaContextual
MetaButton
MetaContextualAndButton
class Llama extends PluginBase implements CKEditorPluginInterface {
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal().
*/
function isInternal() {
return FALSE;
}
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile().
*/
function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama.js';
}
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons().
*/
public function getConfig(Editor $editor) {
return array();
}
}
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Llama:: |
public | function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons(). Overrides CKEditorPluginInterface:: |
|
Llama:: |
function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile(). Overrides CKEditorPluginInterface:: |
3 | |
Llama:: |
function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal(). Overrides CKEditorPluginInterface:: |
||
PluginBase:: |
protected | property | Configuration information passed into the plugin. | 1 |
PluginBase:: |
protected | property | The plugin implementation definition. | |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
public | function |
Returns the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function |
Returns the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Constructs a Drupal\Component\Plugin\PluginBase object. | 17 |