You are here

public function TBMegaMenuBuilderInterface::renderBlock in The Better Mega Menu 2.x

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

Create block which using tb_megamenu.

Parameters

string $menu_name: The menu machine name.

string $theme: The theme machine name.

Return value

array The render array.

1 method overrides TBMegaMenuBuilderInterface::renderBlock()
TBMegaMenuBuilder::renderBlock in src/TBMegaMenuBuilder.php
Create block which using tb_megamenu.

File

src/TBMegaMenuBuilderInterface.php, line 132

Class

TBMegaMenuBuilderInterface
Provides an interface defining a TB MegaMenu builder.

Namespace

Drupal\tb_megamenu

Code

public function renderBlock(string $menu_name, string $theme);