You are here

public function InsertView::getLibraries in Advanced Insert View 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 CKEditorPluginBase::getLibraries

File

src/Plugin/CKEditorPlugin/InsertView.php, line 76

Class

InsertView
The plugin for insert_view_adv .

Namespace

Drupal\insert_view_adv\Plugin\CKEditorPlugin

Code

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