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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andralex created an issue. See original summary.

andralex’s picture

Suresh Prabhu Parkala’s picture

AdamPS’s picture

amaria’s picture

I 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.

  • amaria authored 5936481 on 8.x-2.x
    Issue #3114925 by AdamPS, Suresh Prabhu Parkala, amaria: Replace...
amaria’s picture

Status: Needs review » Fixed

This 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.

AdamPS’s picture

Great thanks

Status: Fixed » Closed (fixed)

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