class DetailPlugin in CKeditor Details Accordion 8
Same name and namespace in other branches
- 2.x src/Plugin/CKEditorPlugin/DetailPlugin.php \Drupal\ckeditor_details\Plugin\CKEditorPlugin\DetailPlugin
Defines the "detail" plugin.
Plugin annotation
@CKEditorPlugin(
id = "detail",
label = @Translation("Accordion")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\ckeditor_details\Plugin\CKEditorPlugin\DetailPlugin implements CKEditorPluginButtonsInterface, CKEditorPluginInterface
Expanded class hierarchy of DetailPlugin
File
- src/
Plugin/ CKEditorPlugin/ DetailPlugin.php, line 18
Namespace
Drupal\ckeditor_details\Plugin\CKEditorPluginView source
class DetailPlugin extends PluginBase implements CKEditorPluginInterface, CKEditorPluginButtonsInterface {
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getDependencies().
*/
public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [
'core/drupal.jquery',
];
}
/**
* Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::isInternal().
*/
public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getButtons() {
return [
'detail' => [
'label' => t('Add accordion'),
'image' => drupal_get_path('module', 'ckeditor_details') . '/js/plugins/detail/icons/detail.png',
],
];
}
/**
* {@inheritdoc}
*/
public function getFile() {
return drupal_get_path('module', 'ckeditor_details') . '/js/plugins/detail/plugin.js';
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DetailPlugin:: |
public | function |
Returns the buttons that this plugin provides, along with metadata. Overrides CKEditorPluginButtonsInterface:: |
|
DetailPlugin:: |
public | function |
Returns the additions to CKEDITOR.config for a specific CKEditor instance. Overrides CKEditorPluginInterface:: |
|
DetailPlugin:: |
public | function |
Implements \Drupal\ckeditor\Plugin\CKEditorPluginInterface::getDependencies(). Overrides CKEditorPluginInterface:: |
|
DetailPlugin:: |
public | function |
Returns the Drupal root-relative file path to the plugin JavaScript file. Overrides CKEditorPluginInterface:: |
|
DetailPlugin:: |
public | function |
Returns a list of libraries this plugin requires. Overrides CKEditorPluginInterface:: |
|
DetailPlugin:: |
public | 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. | 1 |
PluginBase:: |
protected | property | The plugin_id. | |
PluginBase:: |
constant | A string which is used to separate base plugin IDs from the derivative ID. | ||
PluginBase:: |
public | function |
Gets the base_plugin_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the derivative_id of the plugin instance. Overrides DerivativeInspectionInterface:: |
|
PluginBase:: |
public | function |
Gets the definition of the plugin implementation. Overrides PluginInspectionInterface:: |
3 |
PluginBase:: |
public | function |
Gets the plugin_id of the plugin instance. Overrides PluginInspectionInterface:: |
|
PluginBase:: |
public | function | Determines if the plugin is configurable. | |
PluginBase:: |
public | function | Constructs a \Drupal\Component\Plugin\PluginBase object. | 92 |