function TopBarItemHigh::build
Overrides TopBarItemBase::build
File
-
core/
modules/ navigation/ tests/ navigation_test/ src/ Plugin/ TopBarItem/ TopBarItemHigh.php, line 26
Class
- TopBarItemHigh
- Provides a top bar item plugin for testing the top bar item weight.
Namespace
Drupal\navigation_test\Plugin\TopBarItemCode
public function build() : array {
return [
'#markup' => '<span class="top-bar__title" data-plugin-id="test_item_high">High Weight</span>',
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.