Call to undefined function Drupal\entity_embed\Plugin\CKEditorPlugin\drupal_get_path()

Created on 1 August 2024, 4 months ago

Problem/Motivation

By upgrading to Drupal 10 and keeping CKEditor 4, I encountered a fatal error:

Steps to reproduce

1. Upgrading to Drupal 10.x.
2. Configure the text formats which are already using Entity Embed plugin.
3. Observe the fatal error.

Proposed resolution

Replace drupal_get_path('module', 'X') by \Drupal::service('extension.list.module')->getPath('X')

🐛 Bug report
Status

Closed: works as designed

Version

1.0

Component

CKEditor integration

Created by

🇱🇧Lebanon ewehbe

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

Comments & Activities

Production build 0.71.5 2024