After installing in drupal 10, it is giving error

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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 3379038- Comparecompare

Comments

Bhupendra_Raykhere created an issue. See original summary.

sidharth_soman’s picture

StatusFileSize
new740 bytes

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

sarwan_verma’s picture

StatusFileSize
new1.58 KB

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');

mukesh-kumar3’s picture

Status: Active » Reviewed & tested by the community

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