You are here

public function BootstrapTabs::getLibraries in CKEditor Bootstrap Tabs 8

Returns a list of libraries this plugin requires.

These libraries will be attached to the text_format element on which the editor is being loaded.

Parameters

\Drupal\editor\Entity\Editor $editor: A configured text editor object.

Return value

array An array of libraries suitable for usage in a render API #attached property.

Overrides CKEditorPluginInterface::getLibraries

File

src/Plugin/CKEditorPlugin/BootstrapTabs.php, line 83

Class

BootstrapTabs
Defines the "Bootstrap Tabs" plugin.

Namespace

Drupal\ckeditor_bootstrap_tabs\Plugin\CKEditorPlugin

Code

public function getLibraries(Editor $editor) {
  return [
    'ckeditor_bootstrap_tabs/tabs',
  ];
}