Loading CHANGELOG.txt +4 −0 Original line number Diff line number Diff line Slick extras 8.x-1.0-dev, 2021-12-29 ------------------------------------ - Issue #3256098 by mably: Crashes on Drupal 8. Slick extras 8.x-1.0-dev, 2021-12-19 ------------------------------------ - Updated to Blazy 2.6 and Slick 2.5. Loading slick_extras.module +8 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,15 @@ function slick_extras_slick_skins_info() { /** * Returns the path. * * @todo remove for Bazy:2.6+. * @todo remove for Bazy:2.6+ when min D9.3. */ function slick_extras_get_path($type, $name, $absolute = FALSE) { $function = 'drupal_get_path'; if (\Drupal::hasService('extension.path.resolver')) { $path = \Drupal::service('extension.path.resolver')->getPath($type, $name); } else { $path = is_callable($function) ? $function($type, $name) : ''; } return $absolute ? base_path() . $path : $path; } Loading
CHANGELOG.txt +4 −0 Original line number Diff line number Diff line Slick extras 8.x-1.0-dev, 2021-12-29 ------------------------------------ - Issue #3256098 by mably: Crashes on Drupal 8. Slick extras 8.x-1.0-dev, 2021-12-19 ------------------------------------ - Updated to Blazy 2.6 and Slick 2.5. Loading
slick_extras.module +8 −3 Original line number Diff line number Diff line Loading @@ -19,10 +19,15 @@ function slick_extras_slick_skins_info() { /** * Returns the path. * * @todo remove for Bazy:2.6+. * @todo remove for Bazy:2.6+ when min D9.3. */ function slick_extras_get_path($type, $name, $absolute = FALSE) { $function = 'drupal_get_path'; if (\Drupal::hasService('extension.path.resolver')) { $path = \Drupal::service('extension.path.resolver')->getPath($type, $name); } else { $path = is_callable($function) ? $function($type, $name) : ''; } return $absolute ? base_path() . $path : $path; }