function CKEditorPluginInterface::getFile

Same name in other branches
  1. 8.9.x core/modules/ckeditor/src/CKEditorPluginInterface.php \Drupal\ckeditor\CKEditorPluginInterface::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.

See also

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

9 methods override CKEditorPluginInterface::getFile()
DrupalImage::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImage.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalImageCaption::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalImageCaption.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalLink::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalLink.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalMedia::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalMedia.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalMediaLibrary::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/DrupalMediaLibrary.php
Returns the Drupal root-relative file path to the plugin JavaScript file.

... See full list

File

core/modules/ckeditor/src/CKEditorPluginInterface.php, line 79

Class

CKEditorPluginInterface
Defines an interface for (loading of) CKEditor plugins.

Namespace

Drupal\ckeditor

Code

public function getFile();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.