drupal_get_path() function is not supported in drupal 10

Created on 3 August 2023, 11 months ago
Updated 4 August 2023, 11 months ago

After installing in drupal 10, it is giving error

drupal_get_path() function is not supported in drupal 10, we need to update it

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India Bhupendra_Raykhere indore mp

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

Comments & Activities

  • Issue created by @Bhupendra_Raykhere
  • 🇮🇳India sidharth_soman Bangalore

    Using the extension.list.theme service instead of drupal_get_path now. Please review.

  • 🇮🇳India sarwan

    I have fixed this issue by using the Drupal services.

    \Drupal::service('extension.list.theme')->getPath('status_zymphonies_theme') . theme_get_setting('slide_image_path_' . $i, 'status_zymphonies_theme');

  • Status changed to RTBC 11 months ago
  • 🇮🇳India mukesh-kumar3 Dharmshala

    Hi sidharth_soman i have tested the patch provided above #2 is fixed the drupal_get_path() Error so moving this issue to RTBC

Production build 0.69.0 2024