We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9485b2c + 39d20dc commit bf08134Copy full SHA for bf08134
1 file changed
src/MegaMenuBuilder.php
@@ -68,7 +68,7 @@ class MegaMenuBuilder {
68
* generate panels in a custom theme where col sizes can vary based on
69
* custom logic.
70
*/
71
- public function build($item, int $cols) {
+ public function build($item, int $cols, array $options = []) {
72
$columns_data = [];
73
// Reset variables on build.
74
$this->split = FALSE;
@@ -77,6 +77,11 @@ public function build($item, int $cols) {
77
$this->panelData = [];
78
$this->total = 0;
79
80
+ // Set the multiplier if it is set in the options.
81
+ if (isset($options['multiplier'])) {
82
+ $this->multiplier = $options['multiplier'];
83
+ }
84
+
85
// If there are no child menu items then exit. It is only 1 menu item and we
86
// can build a mega menu panel from 1 menu item.
87
if (empty($item['below'])) {
0 commit comments