function NavigationRenderer::doBuildTopBar

Same name and namespace in other branches
  1. 11.x core/modules/navigation/src/NavigationRenderer.php \Drupal\navigation\NavigationRenderer::doBuildTopBar()

Lazy builder to generate the top bar render array.

Attributes

#[TrustedCallback]

File

core/modules/navigation/src/NavigationRenderer.php, line 227

Class

NavigationRenderer
Handle rendering for different pieces of the navigation.

Namespace

Drupal\navigation

Code

public function doBuildTopBar() : array {
  return [
    '#type' => 'top_bar',
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.