You are here

protected static function Toolbar::breakpointManager in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/toolbar/src/Element/Toolbar.php \Drupal\toolbar\Element\Toolbar::breakpointManager()
  2. 9 core/modules/toolbar/src/Element/Toolbar.php \Drupal\toolbar\Element\Toolbar::breakpointManager()

Wraps the breakpoint manager.

Return value

\Drupal\breakpoint\BreakpointManagerInterface

1 call to Toolbar::breakpointManager()
Toolbar::preRenderToolbar in core/modules/toolbar/src/Element/Toolbar.php
Builds the Toolbar as a structured array ready for rendering.

File

core/modules/toolbar/src/Element/Toolbar.php, line 100

Class

Toolbar
Provides a render element for the default Drupal toolbar.

Namespace

Drupal\toolbar\Element

Code

protected static function breakpointManager() {
  return \Drupal::service('breakpoint.manager');
}