function galleryformatter_preprocess_galleryformatter in Gallery formatter 8
Prepares variables for galleryformatter templates.
Default template: galleryformatter.html.twig.
Parameters
array $variables: An associative array containing:
File
- ./
galleryformatter.module, line 27
Code
function galleryformatter_preprocess_galleryformatter(&$variables) {
// @TODO Provide a unique hash for each slide
//foreach ($variables['slides'] as $key => $item) {
// $values = $item['#item']->getValue();
//}
$variables['#attached']['library'][] = 'galleryformatter/galleryformatter';
}