Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Checking the module for deprecated functions in Drupal 9 Deprecated Code Report there are some errors related to deprecated library usage.
------ ------------------------------------------------------------------
Line flexslider.install
------ ------------------------------------------------------------------
34 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
------ ------------------------------------------------------------------
------ ------------------------------------------------------------------
Line flexslider.module
------ ------------------------------------------------------------------
83 Call to deprecated function libraries_get_path():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
------ ------------------------------------------------------------------
------ ------------------------------------------------------------------
Line src/Form/FlexsliderForm.php
------ ------------------------------------------------------------------
513 Call to deprecated function libraries_detect():
Will be removed before a stable Drupal 8 release. Please use the
new library load and managment concepts described at:
https://www.drupal.org/node/2170763
------ ------------------------------------------------------------------
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | flexslider.libraries.3114925-4.patch | 5.36 KB | AdamPS |
#3 | 3114925-3.patch | 1.31 KB | Suresh Prabhu Parkala |
Comments
Comment #2
andralex CreditAttribution: andralex at EPAM Systems for EPAM Systems commentedComment #3
Suresh Prabhu Parkala CreditAttribution: Suresh Prabhu Parkala at Specbee commentedPlease review!
Comment #4
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedComment #5
amaria CreditAttribution: amaria as a volunteer commentedI don't think it's a good idea to just remove the Libraries API without some means of update. I'll work on providing a smooth transition from Libraries API. All contributors will receive proper attribution.
Comment #7
amaria CreditAttribution: amaria as a volunteer commentedThis has been updated in the latest dev version. I've added some changes to keep the access to Library API if it is installed. This code will be removed once 8.9 is the minimal supported version of Drupal 8.
Comment #8
AdamPS CreditAttribution: AdamPS at AlbanyWeb commentedGreat thanks