You are here

public function MediaEmbedButton::getLibraryPath in Wysiwyg Media Embed 8

Get path to library folder.

2 calls to MediaEmbedButton::getLibraryPath()
MediaEmbedButton::getButtons in src/Plugin/CKEditorPlugin/MediaEmbedButton.php
Returns the buttons that this plugin provides, along with metadata.
MediaEmbedButton::getFile in src/Plugin/CKEditorPlugin/MediaEmbedButton.php
Returns the Drupal root-relative file path to the plugin JavaScript file.

File

src/Plugin/CKEditorPlugin/MediaEmbedButton.php, line 23

Class

MediaEmbedButton
Defines the "wysiwyg_mediaembed" plugin.

Namespace

Drupal\wysiwyg_mediaembed\Plugin\CKEditorPlugin

Code

public function getLibraryPath() {
  $path = base_path() . 'libraries/mediaembed';
  return $path;
}