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

Breadcrumb

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

interface TopBarItemManagerInterface

Top bar item plugin manager.

Hierarchy

  • interface \Drupal\navigation\TopBarItemManagerInterface

Expanded class hierarchy of TopBarItemManagerInterface

All classes that implement TopBarItemManagerInterface

2 files declare their use of TopBarItemManagerInterface
NavigationHooks.php in core/modules/navigation/src/Hook/NavigationHooks.php
TopBar.php in core/modules/navigation/src/Element/TopBar.php

File

core/modules/navigation/src/TopBarItemManagerInterface.php, line 10

Namespace

Drupal\navigation
View source
interface TopBarItemManagerInterface {
    
    /**
     * Gets the top bar item plugins by region.
     *
     * @param \Drupal\navigation\TopBarRegion $region
     *   The region.
     *
     * @return array
     *   A list of top bar item plugin definitions.
     */
    public function getDefinitionsByRegion(TopBarRegion $region) : array;
    
    /**
     * Gets the top bar items prepared as render array.
     *
     * @param \Drupal\navigation\TopBarRegion $region
     *   The region.
     *
     * @return array
     *   An array of rendered top bar items, keyed by the plugin ID and sorted by
     *   weight.
     */
    public function getRenderedTopBarItemsByRegion(TopBarRegion $region) : array;

}

Members

Title Sort descending Modifiers Object type Summary
TopBarItemManagerInterface::getDefinitionsByRegion public function Gets the top bar item plugins by region.
TopBarItemManagerInterface::getRenderedTopBarItemsByRegion public function Gets the top bar items prepared as render array.

API Navigation

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