public function TemplateSelector::getDependencies in Wysiwyg API template plugin 8.2
Same name and namespace in other branches
- 3.0.x src/Plugin/CKEditorPlugin/TemplateSelector.php \Drupal\wysiwyg_template\Plugin\CKEditorPlugin\TemplateSelector::getDependencies()
Returns a list of plugins this plugin requires.
Parameters
\Drupal\editor\Entity\Editor $editor: A configured text editor object.
Return value
array An unindexed array of plugin names this plugin requires. Each plugin is is identified by its annotated ID.
Overrides CKEditorPluginBase::getDependencies
File
- src/
Plugin/ CKEditorPlugin/ TemplateSelector.php, line 63
Class
- TemplateSelector
- Defines a WYSIWYG TemplateSelector selector plugin.
Namespace
Drupal\wysiwyg_template\Plugin\CKEditorPluginCode
public function getDependencies(Editor $editor) : array {
return [
'templates',
];
}