You are here

public function GutenbergPluginInterface::getFile in Gutenberg 8

Same name and namespace in other branches
  1. 8.2 src/GutenbergPluginInterface.php \Drupal\gutenberg\GutenbergPluginInterface::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.

1 method overrides GutenbergPluginInterface::getFile()
DrupalImage::getFile in src/Plugin/GutenbergPlugin/DrupalImage.php
Returns the Drupal root-relative file path to the plugin JavaScript file.

File

src/GutenbergPluginInterface.php, line 37

Class

GutenbergPluginInterface
Defines an interface for (loading of) Gutenberg plugins.

Namespace

Drupal\gutenberg

Code

public function getFile();