You are here

function template_preprocess_royalslider_formatter in RoyalSlider Integration 8

Prepares variables for royalslider formatter templates.

Default template: royalslider-formatter.html.twig.

Parameters

array $variables: An associative array containing:

  • items: An array of slider image objects.

File

./royalslider.field.inc, line 17
Implement a royalslider field, based on the image module's image field.

Code

function template_preprocess_royalslider_formatter(&$variables) {

  //  $variables['royalslider_items'] = $variables['items'];
  //  $entity = $variables['entity'];
  //  $variables['entity_type'] = $entity->getEntityType();
  //  $variables['entity_id'] = $entity->uuid();
  kint($variables);
}