protected function Anchor::getLibraryUrl in CKEditor Anchor Link - For Drupal 8 and 9 3.0.x
Get the CKEditor Anchor library URL.
1 call to Anchor::getLibraryUrl()
- Anchor::getButtons in src/
Plugin/ CKEditorPlugin/ Anchor.php - Returns the buttons that this plugin provides, along with metadata.
File
- src/
Plugin/ CKEditorPlugin/ Anchor.php, line 81
Class
- Anchor
- Defines the "anchor" plugin.
Namespace
Drupal\anchor_link\Plugin\CKEditorPluginCode
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/anchor';
}