protected function Link::getLibraryPath in CKEditor Anchor Link - For Drupal 8 and 9 3.0.x
Get the CKEditor Link library path.
1 call to Link::getLibraryPath()
- Link::getFile in src/
Plugin/ CKEditorPlugin/ Link.php - Returns the Drupal root-relative file path to the plugin JavaScript file.
File
- src/
Plugin/ CKEditorPlugin/ Link.php, line 71
Class
- Link
- Defines the "link" plugin.
Namespace
Drupal\anchor_link\Plugin\CKEditorPluginCode
protected function getLibraryPath() {
$module_path = \Drupal::service('module_handler')
->getModule('anchor_link')
->getPath();
return $module_path . '/js/link';
}