function NavigationRenderer::doBuildTopBar

Lazy builder to generate the top bar render array.

Attributes

#[TrustedCallback]

File

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

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.