You are here

public function TBMegaMenuBuilder::editBlockConfig in The Better Mega Menu 2.x

Same name and namespace in other branches
  1. 8 src/TBMegaMenuBuilder.php \Drupal\tb_megamenu\TBMegaMenuBuilder::editBlockConfig()

Create the default attributes for the configuration of block.

Parameters

array $block_config: The block config array to fill with default values.

Overrides TBMegaMenuBuilderInterface::editBlockConfig

File

src/TBMegaMenuBuilder.php, line 145

Class

TBMegaMenuBuilder
Defines a TBMegaMenuBuilder.

Namespace

Drupal\tb_megamenu

Code

public function editBlockConfig(array &$block_config) {
  $block_config += [
    'animation' => 'none',
    'style' => '',
    'auto-arrow' => TRUE,
    'duration' => 400,
    'delay' => 200,
    'always-show-submenu' => TRUE,
    'off-canvas' => 0,
    'number-columns' => 0,
  ];
}