function TopBarItemManager::getDefinitionsByRegion

1 call to TopBarItemManager::getDefinitionsByRegion()
TopBarItemManager::getRenderedTopBarItemsByRegion in core/modules/navigation/src/TopBarItemManager.php

File

core/modules/navigation/src/TopBarItemManager.php, line 29

Class

TopBarItemManager
Top bar item plugin manager.

Namespace

Drupal\navigation

Code

public function getDefinitionsByRegion(TopBarRegion $region) : array {
    return array_filter($this->getDefinitions(), fn(array $definition) => $definition['region'] === $region);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.