Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / ItemListBootstrapCarouselIndicators.php
diff --git a/web/themes/contrib/bootstrap/src/Plugin/Preprocess/ItemListBootstrapCarouselIndicators.php b/web/themes/contrib/bootstrap/src/Plugin/Preprocess/ItemListBootstrapCarouselIndicators.php
new file mode 100644 (file)
index 0000000..227c993
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drupal\bootstrap\Plugin\Preprocess;
+
+use Drupal\bootstrap\Utility\Variables;
+
+/**
+ * Pre-processes for the "item_list__bootstrap_carousel_indicators" theme hook.
+ *
+ * @ingroup plugins_preprocess
+ *
+ * @BootstrapPreprocess("item_list__bootstrap_carousel_indicators")
+ */
+class ItemListBootstrapCarouselIndicators extends PreprocessBase implements PreprocessInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function preprocessVariables(Variables $variables) {
+    parent::preprocessVariables($variables);
+
+    $variables->target = $variables->getContext('target');
+    $variables->start_index = $variables->getContext('start_index');
+  }
+
+}