class HubspotForms in Hubspot forms 8
Same name in this branch
- 8 src/Plugin/Filter/HubspotForms.php \Drupal\hubspot_forms\Plugin\Filter\HubspotForms
- 8 src/Plugin/CKEditorPlugin/HubspotForms.php \Drupal\hubspot_forms\Plugin\CKEditorPlugin\HubspotForms
Defines the "HubspotForms" plugin.
Plugin annotation
@CKEditorPlugin(
id = "hubspot_forms",
label = @Translation("Hubspot Forms")
)
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements DerivativeInspectionInterface, PluginInspectionInterface
- class \Drupal\hubspot_forms\Plugin\CKEditorPlugin\HubspotForms implements CKEditorPluginButtonsInterface, CKEditorPluginInterface
Expanded class hierarchy of HubspotForms
File
- src/
Plugin/ CKEditorPlugin/ HubspotForms.php, line 18
Namespace
Drupal\hubspot_forms\Plugin\CKEditorPluginView source
class HubspotForms extends PluginBase implements CKEditorPluginInterface, CKEditorPluginButtonsInterface {
/**
* {@inheritdoc}
*/
public function getDependencies(Editor $editor) {
return [];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [
'core/drupal.ajax',
];
}
/**
* {@inheritdoc}
*/
public function isInternal() {
return FALSE;
}
/**
* {@inheritdoc}
*/
public function getFile() {
return drupal_get_path('module', 'hubspot_forms') . '/assets/hubspot_forms.js';
}
/**
* {@inheritdoc}
*/
public function getButtons() {
return [
'hubspot_forms' => [
'label' => t('Hubspot Forms'),
'image' => drupal_get_path('module', 'hubspot_forms') . '/assets/icon.png',
],
];
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [
'hubspot_forms_dialog_title' => t('Hubspot Forms'),
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
HubspotForms:: |
public | function |
Returns the buttons that this plugin provides, along with metadata. Overrides CKEditorPluginButtonsInterface:: |
|
HubspotForms:: |
public | function |
Returns the additions to CKEDITOR.config for a specific CKEditor instance. Overrides CKEditorPluginInterface:: |
|
HubspotForms:: |
public | function |
Returns a list of plugins this plugin requires. Overrides CKEditorPluginInterface:: |
|
HubspotForms:: |
public | function |
Returns the Drupal root-relative file path to the plugin JavaScript file. Overrides CKEditorPluginInterface:: |
|
HubspotForms:: |
public | function |
Returns a list of libraries this plugin requires. Overrides CKEditorPluginInterface:: |
|
HubspotForms:: |
public | function |
Indicates if this plugin is part of the optimized CKEditor build. 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 |