public function SlickManager::getEasingPath in Slick Carousel 7.3
Returns easing library path if available, else FALSE.
1 call to SlickManager::getEasingPath()
- SlickManager::attach in src/
SlickManager.php - Returns array of needed assets suitable for #attached property.
File
- src/
SlickManager.php, line 80
Class
- SlickManager
- Implements SlickManagerInterface.
Namespace
Drupal\slickCode
public function getEasingPath() {
if (!isset($this->easingPath)) {
$library_easing = libraries_get_path('easing') ?: libraries_get_path('jquery.easing');
if ($library_easing) {
$easing_path = $library_easing . '/jquery.easing.min.js';
// Composer via bower-asset puts the library within `js` directory.
if (!is_file($easing_path)) {
$easing_path = $library_easing . '/js/jquery.easing.min.js';
}
}
$this->easingPath = isset($easing_path) && is_file($easing_path) ? $easing_path : FALSE;
}
return $this->easingPath;
}