Skip to content
Snippets Groups Projects
Commit 5a0ea2d5 authored by Angie Byron's avatar Angie Byron
Browse files

#510094 by mgifford and pp: Add description to the link items of Toolbar module.

parent 1b1fb73c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -283,6 +283,10 @@ function toolbar_menu_navigation_links($tree) {
$link['title'] = '<span class="icon"></span>' . $item['link']['title'];
// Add admin link ID and to-overlay class for the overlay.
$link['attributes'] = array('id' => 'toolbar-link-' . $id, 'class' => array('to-overlay'));
if (!empty($item['link']['description'])) {
$link['title'] .= ' <span class="element-invisible">(' . $item['link']['description'] . ')</span>';
$link['attributes']['title'] = $item['link']['description'];
}
$link['html'] = TRUE;
$class = ' path-' . $id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment