You are here

public function TBMegaMenuBuilder::editSubMenuConfig in The Better Mega Menu 8

Same name and namespace in other branches
  1. 2.x src/TBMegaMenuBuilder.php \Drupal\tb_megamenu\TBMegaMenuBuilder::editSubMenuConfig()

Set the default values to configuration in Sub TB Megamenu if it's empty.

Parameters

array $submenu_config: The array to fill with default values.

Overrides TBMegaMenuBuilderInterface::editSubMenuConfig

File

src/TBMegaMenuBuilder.php, line 161

Class

TBMegaMenuBuilder
Defines a TBMegaMenuBuilder.

Namespace

Drupal\tb_megamenu

Code

public function editSubMenuConfig(array &$submenu_config) {
  $submenu_config += [
    'width' => '',
    'class' => '',
    'group' => '',
  ];
}