Defines a "LlamaButton" plugin, with a toolbar builder-enabled "llama" feature.
@CKEditorPlugin(
id = "llama_button",
label = @Translation("Llama Button")
)
Expanded class hierarchy of LlamaButton
class LlamaButton extends Llama implements CKEditorPluginButtonsInterface {
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginButtonsInterface::getButtons().
*/
function getButtons() {
return array(
'Llama' => array(
'label' => t('Insert Lllama'),
),
);
}
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile().
*/
function getFile() {
return drupal_get_path('module', 'ckeditor_test') . '/js/llama_button.js';
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Llama:: |
public | function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getButtons(). Overrides CKEditorPluginInterface:: |
|
Llama:: |
function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal(). Overrides CKEditorPluginInterface:: |
||
LlamaButton:: |
function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginButtonsInterface::getButtons(). Overrides CKEditorPluginButtonsInterface:: |
||
LlamaButton:: |
function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getFile(). Overrides Llama:: |
||
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 |