Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Preprocess / BootstrapCarousel.php
index 49459710e6e4f37ca61a470103a59ad7c1c2b838..a85fd079d50dd1509dda14a63d35c58baee6fe0d 100644 (file)
@@ -1,12 +1,7 @@
 <?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Preprocess\BootstrapCarousel.
- */
 
 namespace Drupal\bootstrap\Plugin\Preprocess;
 
-use Drupal\bootstrap\Annotation\BootstrapPreprocess;
 use Drupal\bootstrap\Bootstrap;
 use Drupal\bootstrap\Utility\Element;
 use Drupal\bootstrap\Utility\Variables;
@@ -75,8 +70,10 @@ class BootstrapCarousel extends PreprocessBase implements PreprocessInterface {
         '#theme' => 'item_list__bootstrap_carousel_indicators',
         '#list_type' => 'ol',
         '#items' => array_keys($variables->slides),
-        '#target' => "#$id",
-        '#start_index' => $variables->start_index,
+        '#context' => [
+          'target' => "#$id",
+          'start_index' => $variables->start_index,
+        ],
       ];
     }