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