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