public function SlickManager::buildGridItem in Slick Carousel 8.2
Same name and namespace in other branches
- 7.3 src/SlickManager.php \Drupal\slick\SlickManager::buildGridItem()
Returns items as a grid item display.
1 call to SlickManager::buildGridItem()
- SlickManager::buildGrid in src/
SlickManager.php - Returns items as a grid display.
File
- src/
SlickManager.php, line 203
Class
- SlickManager
- Implements BlazyManagerInterface, SlickManagerInterface.
Namespace
Drupal\slickCode
public function buildGridItem(array $items, $delta, array $settings = []) {
$slide = [
'#theme' => 'slick_grid',
'#items' => $items,
'#delta' => $delta,
'#settings' => $settings,
];
return [
'slide' => $slide,
'settings' => $settings,
];
}