Skip to content
Snippets Groups Projects

Issue #3473325: slick_libraries_get_path method not found

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -7,8 +7,9 @@ use GuzzleHttp\RequestOptions;
* Downloads the Slick JavaScript library if needed.
*/
function lightning_media_slideshow_update_9001(array &$sandbox) {
$moduleHandler = \Drupal::service('module_handler');
// If the Slick library is already available, there's nothing to do.
$dir = slick_libraries_get_path('slick') ?: slick_libraries_get_path('slick-carousel') ?: slick_libraries_get_path('accessible-slick');
$dir = $moduleHandler->getModule('slick')->getPath() ?: $moduleHandler->getModule('slick-carousel')->getPath() ?: $moduleHandler->getModule('accessible-slick')->getPath();
if ($dir) {
return;
}
Loading