You are here

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

Get the CKEditor Unlink library URL.

1 call to Unlink::getLibraryUrl()
Unlink::getButtons in src/Plugin/CKEditorPlugin/Unlink.php
Returns the buttons that this plugin provides, along with metadata.

File

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

Class

Unlink
Defines the "unlink" plugin.

Namespace

Drupal\anchor_link\Plugin\CKEditorPlugin

Code

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