You are here

public function VideoEmbedWysiwyg::getFile in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 modules/video_embed_wysiwyg/src/Plugin/CKEditorPlugin/VideoEmbedWysiwyg.php \Drupal\video_embed_wysiwyg\Plugin\CKEditorPlugin\VideoEmbedWysiwyg::getFile()

Returns the Drupal root-relative file path to the plugin JavaScript file.

Note: this does not use a Drupal library because this uses CKEditor's API.

Return value

string|false The Drupal root-relative path to the file, FALSE if an internal plugin.

Overrides CKEditorPluginInterface::getFile

See also

https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_resourceManager....

File

modules/video_embed_wysiwyg/src/Plugin/CKEditorPlugin/VideoEmbedWysiwyg.php, line 26

Class

VideoEmbedWysiwyg
The media_entity plugin for video_embed_field.

Namespace

Drupal\video_embed_wysiwyg\Plugin\CKEditorPlugin

Code

public function getFile() {
  return drupal_get_path('module', 'video_embed_wysiwyg') . '/plugin/plugin.js';
}