Deprecated use of drupal_get_path in CKeditor 4 plugin

Created on 13 October 2023, almost 2 years ago

Problem/Motivation

Our client is opting to stay on CKEditor 4 for a bit longer, but upgrade to Drupal 10. In doing so I found that this module throws a fatal:

Error: Call to undefined function Drupal\editor_advanced_link\Plugin\CKEditorPlugin\drupal_get_path() in Drupal\editor_advanced_link\Plugin\CKEditorPlugin\AnchorLink->getFile() (line 23 of modules/contrib/editor_advanced_link/src/Plugin/CKEditorPlugin/AnchorLink.php).

Steps to reproduce

composer require drupal/ckeditor:^1.0
drush pm:uninstall ckeditor5
drush pm:install ckeditor
Have an editor that has a link in it
load any page.

Proposed resolution

Lets go ahead and use the not deprecated code here too.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States generalredneck Texas, USA πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024