Check if the module is really compatible with Drupal 8

Created on 2 July 2024, 11 months ago

Problem/Motivation

When solving Drupal 10 compatibility, one thing was overlooked:

-    $dir = drupal_get_path('module', 'lightning_scheduler');
+    $dir = \Drupal::service('extension.list.module')->getPath('lightning_scheduler');

This service appeared first only in Drupal 9.3 β†’ and early versions throw error now.

Steps to reproduce

Proposed resolution

Fix this regression with checking the current core version and calling the proper function to eliminate this error. We do not need to raise the minimal core version requirement just because this one line.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

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

Comments & Activities

Production build 0.71.5 2024