You are here

public function CKEditorPluginInterface::getFile in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/ckeditor/src/CKEditorPluginInterface.php \Drupal\ckeditor\CKEditorPluginInterface::getFile()
  2. 10 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....

11 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.
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/media/src/Plugin/CKEditorPlugin/DrupalMedia.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
DrupalMediaLibrary::getFile in core/modules/media_library/src/Plugin/CKEditorPlugin/DrupalMediaLibrary.php
Returns the Drupal root-relative file path to the plugin JavaScript file.
Internal::getFile in core/modules/ckeditor/src/Plugin/CKEditorPlugin/Internal.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();