diff --git a/src/Plugin/Preprocess/BootstrapCarousel.php b/src/Plugin/Preprocess/BootstrapCarousel.php index 49459710e6e4f37ca61a470103a59ad7c1c2b838..cb148ac9056044a07ba7d90a93cbc4fc5c285f39 100644 --- a/src/Plugin/Preprocess/BootstrapCarousel.php +++ b/src/Plugin/Preprocess/BootstrapCarousel.php @@ -75,7 +75,9 @@ class BootstrapCarousel extends PreprocessBase implements PreprocessInterface { '#theme' => 'item_list__bootstrap_carousel_indicators', '#list_type' => 'ol', '#items' => array_keys($variables->slides), - '#target' => "#$id", + '#context' => [ + 'target' => "#$id", + ], '#start_index' => $variables->start_index, ]; } diff --git a/src/Plugin/Preprocess/ItemListBootstrapCarouselIndicators.php b/src/Plugin/Preprocess/ItemListBootstrapCarouselIndicators.php new file mode 100644 index 0000000000000000000000000000000000000000..4bc113cc0dba60c42272a9107eb9861f3656d342 --- /dev/null +++ b/src/Plugin/Preprocess/ItemListBootstrapCarouselIndicators.php @@ -0,0 +1,25 @@ +target = $variables->getContext('target'); + } + +}