You are here

public function UltimenuManagerInterface::buildMenuTree in Ultimenu 8.2

Same name and namespace in other branches
  1. 8 src/UltimenuManagerInterface.php \Drupal\ultimenu\UltimenuManagerInterface::buildMenuTree()

Build the menu to contain Ultimenu regions.

Helper function for ::build().

Parameters

array $config: The config available for the menu tree.

\Drupal\Core\Cache\CacheableMetadata &$tree_access_cacheability: Internal use only. The aggregated cacheability metadata for the access results across the entire tree. Used when rendering the root level.

\Drupal\Core\Cache\CacheableMetadata &$tree_link_cacheability: Internal use only. The aggregated cacheability metadata for the menu links across the entire tree. Used when rendering the root level.

Return value

array The value to use for the #items property of a renderable menu.

Throws

\DomainException

1 method overrides UltimenuManagerInterface::buildMenuTree()
UltimenuManager::buildMenuTree in src/UltimenuManager.php
Build the menu to contain Ultimenu regions.

File

src/UltimenuManagerInterface.php, line 68

Class

UltimenuManagerInterface
Interface for Ultimenu manager.

Namespace

Drupal\ultimenu

Code

public function buildMenuTree(array $config, CacheableMetadata &$tree_access_cacheability, CacheableMetadata &$tree_link_cacheability);