You are here

public function ReadMore::getFile in CKEditor Read More 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/CKEditorPlugin/ReadMore.php \Drupal\ckeditor_readmore\Plugin\CKEditorPlugin\ReadMore::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, see http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.resourceManager.h....

Return value

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

Overrides CKEditorPluginInterface::getFile

File

src/Plugin/CKEditorPlugin/ReadMore.php, line 68

Class

ReadMore
Defines the "Google Search" plugin.

Namespace

Drupal\ckeditor_readmore\Plugin\CKEditorPlugin

Code

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