public function SlickManager::libraryInfoBuild in Slick Carousel 8
Implements hook_library_info_build().
File
- src/
SlickManager.php, line 90
Class
- SlickManager
- Implements BlazyManagerInterface, SlickManagerInterface.
Namespace
Drupal\slickCode
public function libraryInfoBuild() {
$libraries['slick.css'] = [
'dependencies' => [
'slick/slick',
],
'css' => [
'theme' => [
'/libraries/slick/slick/slick-theme.css' => [],
],
],
];
foreach (self::getConstantSkins() as $group) {
if ($skins = $this
->getSkinsByGroup($group)) {
foreach ($skins as $key => $skin) {
$provider = isset($skin['provider']) ? $skin['provider'] : 'slick';
$id = $provider . '.' . $group . '.' . $key;
foreach ([
'css',
'js',
'dependencies',
] as $property) {
if (isset($skin[$property]) && is_array($skin[$property])) {
$libraries[$id][$property] = $skin[$property];
}
}
}
}
}
return $libraries;
}