Upgrade the module to be compatible with Drupal 9 and Drupal 10

Created on 21 April 2022, over 2 years ago
Updated 9 March 2023, over 1 year ago

Problem/Motivation

Drupal 8 EOL came in 2021, so it's time to update the module to be compatible just with D9 and D10.

Steps to reproduce

  1. Install a new instance of the module in a drupal 9
  2. Using upgrade_status β†’ module, check for the drupal compatibility

Proposed resolution

Fix the deprecation notices from upgrade_status and change the files(composer.json, info.yml...)

After running upgrade_status for the module, the results were:

Light Gallery

3 warnings found.

web/modules/contrib/lightgallery/lightgallery.install:
Line 28: Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.

web/modules/contrib/lightgallery/lightgallery.module:
Line 20: Call to deprecated function drupal_get_path(). Deprecated in drupal:9.3.0 and is removed from drupal:10.0.0. Use Drupal\Core\Extension\ExtensionPathResolver::getPath() instead.

web/modules/contrib/lightgallery/lightgallery.info.yml:
Value of core_version_requirement: ^8 || ^9 is not compatible with the next major version of Drupal core. See ttps://drupal.org/node/3070687.

API changes

The new version of lightgallery will be compatible with drupal 9 and 10 only.

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil murilohp

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024