Hi,

Library build and language uses, are gated behind a function_exists('libraries_get_path') which doesn't exist anymore in Drupal 8.

Same problem with the library detection in the requirement.

Two options in my opinion :
- Library path might be retreive with library.discovery. Something like this : $path = \Drupal::service('library.discovery')->getLibraryByName('drupal', 'timeago');
but library definition should be rework, as 3th party libraries are usually managed with composer
OR
- Path might be hardcoded as this path is expect to be fix (Already fix in README.txt). A crude file_exist() or better, might be use as trigger

Any opinions ?

Comments

scoisne created an issue. See original summary.

scoisne’s picture

Title: Timeago : libraries_get_path isn't a D8 function » nevermind
Priority: Normal » Minor
Issue summary: View changes
Status: Active » Closed (works as designed)
apaderno’s picture

Title: Timeago : libraries_get_path isn't a D8 function » Timeago: libraries_get_path isn't a D8 function
Version: 8.x-1.3 » 8.x-1.x-dev
Status: Active » Closed (works as designed)