You are here

protected function Unlink::getLibraryPath in CKEditor Anchor Link - For Drupal 8 and 9 3.0.x

Get the CKEditor Unlink library path.

1 call to Unlink::getLibraryPath()
Unlink::getFile in src/Plugin/CKEditorPlugin/Unlink.php
Returns the Drupal root-relative file path to the plugin JavaScript file.

File

src/Plugin/CKEditorPlugin/Unlink.php, line 71

Class

Unlink
Defines the "unlink" plugin.

Namespace

Drupal\anchor_link\Plugin\CKEditorPlugin

Code

protected function getLibraryPath() {
  $module_path = \Drupal::service('module_handler')
    ->getModule('anchor_link')
    ->getPath();
  return $module_path . '/js/unlink';
}