class DrupalViews in Views entity embed 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/CKEditorPlugin/DrupalViews.php \Drupal\views_entity_embed\Plugin\CKEditorPlugin\DrupalViews
Defines the "drupalViews" plugin.
Plugin annotation
@CKEditorPlugin(
id = "drupalviews",
label = @Translation("Views"),
embed_type_id = "embed_views"
)
Hierarchy
- class \Drupal\views_entity_embed\Plugin\CKEditorPlugin\DrupalViews extends \Drupal\embed\EmbedCKEditorPluginBase
Expanded class hierarchy of DrupalViews
File
- src/
Plugin/ CKEditorPlugin/ DrupalViews.php, line 17
Namespace
Drupal\views_entity_embed\Plugin\CKEditorPluginView source
class DrupalViews extends EmbedCKEditorPluginBase {
/**
* {@inheritdoc}
*/
public function getFile() {
return drupal_get_path('module', 'views_entity_embed') . '/js/plugins/drupalviews/plugin.js';
}
/**
* {@inheritdoc}
*/
public function getConfig(Editor $editor) {
return [
'DrupalViews_dialogTitleAdd' => t('Insert views'),
'DrupalViews_dialogTitleEdit' => t('Edit views'),
'DrupalViews_buttons' => $this
->getButtons(),
];
}
/**
* {@inheritdoc}
*/
public function getLibraries(Editor $editor) {
return [
'core/jquery',
'core/drupal',
'core/drupal.ajax',
];
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalViews:: |
public | function | ||
DrupalViews:: |
public | function | ||
DrupalViews:: |
public | function |