You are here

public function TBMegaMenuBuilderInterface::findMenuItem in The Better Mega Menu 8

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

Search by menu item.

Parameters

array $tree: The menu tree.

string $plugin_id: The item plugin id.

Return value

\Drupal\Core\Menu\MenuLinkTreeElement The menu link element.

1 method overrides TBMegaMenuBuilderInterface::findMenuItem()
TBMegaMenuBuilder::findMenuItem in src/TBMegaMenuBuilder.php
Search by menu item.

File

src/TBMegaMenuBuilderInterface.php, line 60

Class

TBMegaMenuBuilderInterface
Provides an interface defining a TB MegaMenu builder.

Namespace

Drupal\tb_megamenu

Code

public function findMenuItem(array $tree, string $plugin_id);