You are here

protected function TokenBrowser::getImage in Token Filter 8

Fetches the path to the image.

Make sure that the path to the image matches the file structure of the CKEditor plugin you are implementing.

Return value

string The string representation of the path to the image.

1 call to TokenBrowser::getImage()
TokenBrowser::getButtons in src/Plugin/CKEditorPlugin/TokenBrowser.php
NOTE: The keys of the returned array corresponds to the CKEditor button names. They are the first argument of the editor.ui.addButton() or editor.ui.addRichCombo() functions in the plugin.js file.

File

src/Plugin/CKEditorPlugin/TokenBrowser.php, line 131

Class

TokenBrowser
Defines the "tokenbrowser" plugin.

Namespace

Drupal\token_filter\Plugin\CKEditorPlugin

Code

protected function getImage() {
  return $this
    ->getModulePath() . '/js/plugins/tokenbrowser/tokenbrowser.png';
}