function NavigationRenderer::removeToolbar
Same name in other branches
- 10 core/modules/navigation/src/NavigationRenderer.php \Drupal\navigation\NavigationRenderer::removeToolbar()
Remove the toolbar provided by Toolbar module.
Parameters
array $page_top: A renderable array representing the top of the page.
See also
File
-
core/
modules/ navigation/ src/ NavigationRenderer.php, line 85
Class
- NavigationRenderer
- Handle rendering for different pieces of the navigation.
Namespace
Drupal\navigationCode
public function removeToolbar(array &$page_top) : void {
if (isset($page_top['toolbar'])) {
unset($page_top['toolbar']);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.