Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NavigationRenderer.php

function NavigationRenderer::removeToolbar

Remove the toolbar provided by Toolbar module.

Parameters

array $page_top: A renderable array representing the top of the page.

See also

toolbar_page_top()

hook_page_top()

File

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

Class

NavigationRenderer
Handle rendering for different pieces of the navigation.

Namespace

Drupal\navigation

Code

public function removeToolbar(array &$page_top) : void {
    if (isset($page_top['toolbar'])) {
        unset($page_top['toolbar']);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal