You are here

private function CkeditorTemplatesUi::getTemplatesDefaultPath in Ckeditor templates user interface 8

Generate the path to the template file.

The file will be picked from :

  • the module js folder.

Return value

array List of path to the template file.

Overrides CkeditorTemplates::getTemplatesDefaultPath

1 call to CkeditorTemplatesUi::getTemplatesDefaultPath()
CkeditorTemplatesUi::getConfig in src/CkeditorTemplatesUi.php
Returns the additions to CKEDITOR.config for a specific CKEditor instance.

File

src/CkeditorTemplatesUi.php, line 50

Class

CkeditorTemplatesUi

Namespace

Drupal\ckeditor_templates_ui

Code

private function getTemplatesDefaultPath() {
  global $base_path;
  return [
    $base_path . drupal_get_path('module', 'ckeditor_templates_ui') . '/js/ckeditor_templates.js',
  ];
}