public function SlickManager::buildGridItem in Slick Carousel 7.3
Same name and namespace in other branches
- 8.2 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 405
Class
- SlickManager
- Implements SlickManagerInterface.
Namespace
Drupal\slickCode
public function buildGridItem(array $items, $delta, array $settings = []) {
$slide = [
'#theme' => 'slick_grid',
'#items' => $items,
'#delta' => $delta,
'#settings' => $settings,
'#attributes' => $this
->prepareGridAttributes($settings),
];
return [
'slide' => $slide,
'settings' => $settings,
];
}