Remove calls to deprecated function libraries_get_path

Created on 28 April 2023, about 1 year ago
Updated 17 July 2023, 11 months ago

Problem/Motivation

When reviewing the compatibility with Drupal 10 it was noticed that support for Drupal 8 still exists. Drupal 8 has been end of life for almost 2 years now: https://www.drupal.org/psa-2021-06-29 โ†’

Seems like it is time to drop support for D8.

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States ccjjmartin Austin, TX

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

Comments & Activities

  • Issue created by @ccjjmartin
  • @ccjjmartin opened merge request.
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States ccjjmartin Austin, TX

    In theory this would be considered a breaking change so it may also be a good time to switch the module to using the new semantic versioning branches and create a 2.x branch with releases there.

  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland Berdir Switzerland

    libraries_get_path() is from the contributed module and not Drupal 8.

    The main thing to clean up here i to remove the conditional check for the libraries_directory_file_finder service, as that now always exists. In fact, that was added in Drupal 8.9, so it is enough to require at least 8.9, don't even have to drop support for Drupal 8.

  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kbk1992 Hyderabad

    bharath-kondeti โ†’ made their first commit to this issueโ€™s fork.

  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia kbk1992 Hyderabad

    Addressed #4 and updated the changes. Please review

  • Status changed to Needs work about 1 year ago
  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland Berdir Switzerland

    More cleanup id possible, the default initializion and check is not needed as it will never be default. It's also not necessary to keep the hardcored libraries check. Just call the function and check for it being null

  • First commit to issue fork.
  • Status changed to Needs review about 1 year ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sakthi_dev

    Please review.

  • Status changed to Fixed 12 months ago
  • ๐Ÿ‡ฆ๐Ÿ‡นAustria granik Vienna

    Thanks everyone, fixed in 2.0.x-dev version.

  • ๐Ÿ‡จ๐Ÿ‡ญSwitzerland Berdir Switzerland

    FWIW, there's still more cleanup in shariff_requirements() that would make sense. It still talks about libraries module, it still has a == default check which no longer exists, so that whole block could be removed as it will never be true. the files that are checked at runtime and in the requirements hook and the explanation doesn't seem to be consistent (runtime supports dist, requirements hook does not).

  • ๐Ÿ‡ฆ๐Ÿ‡นAustria granik Vienna

    @Berdir, thanks for your catch. I removed this deprecated requirements check via libraries module. Build folder check is still supported in runtime just for legacy reasons.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024