You are here

public function UltimenuManager::build in Ultimenu 8.2

Returns the contents using theme_ultimenu().

Parameters

array $build: The array containing: config.

Return value

array The alterable and renderable array of Ultimenu items.

Overrides UltimenuManagerInterface::build

File

src/UltimenuManager.php, line 185

Class

UltimenuManager
Implements UltimenuManagerInterface.

Namespace

Drupal\ultimenu

Code

public function build(array $build = []) {
  $build = [
    '#theme' => 'ultimenu',
    '#items' => [],
    '#build' => $build,
    '#pre_render' => [
      [
        $this,
        'preRenderBuild',
      ],
    ],
  ];
  $this->moduleHandler
    ->alter('ultimenu_build', $build);
  return $build;
}