Issue #3557282 by dydave: Fixed phpstan errors by using core utility...
Issue #3557282 by dydave: Fixed phpstan errors by using core utility 'NestedArray::mergeDeep()' instead of directly changing link attributes options array.
$output.='<p>'.t('The Admin Toolbar module enhances the <a href=":toolbar">Toolbar</a> module by providing fast access to all the administrative links at the top of your site. Admin Toolbar remains a very "lightweight" module by closely integrating with all Toolbar functionality. It can be used in conjunction with all the sub modules included on Admin Toolbar, for quick access to system commands such as Flush all caches, <a href=":automated_cron">Run cron</a>, Run Updates, etc.',$variables).'</p>';
$output.='<h3>'.t('Uses').'</h3>';
$output.='<p>'.t('The Admin Toolbar greatly improves the user experience for those who regularly interact with the site Toolbar by providing fast, full access to all links in the site Toolbar without having to click to get there.').'</p>';
return$output;
}
}
/**
* Implements hook_toolbar_alter().
*/
@@ -54,52 +73,48 @@ function admin_toolbar_toolbar_alter(&$items) {
$output.='<p>'.t('The Admin Toolbar module enhances the <a href=":toolbar">Toolbar</a> module by providing fast access to all the administrative links at the top of your site. Admin Toolbar remains a very "lightweight" module by closely integrating with all Toolbar functionality. It can be used in conjunction with all the sub modules included on Admin Toolbar, for quick access to system commands such as Flush all caches, <a href=":automated_cron">Run cron</a>, Run Updates, etc.',$variables).'</p>';
$output.='<h3>'.t('Uses').'</h3>';
$output.='<p>'.t('The Admin Toolbar greatly improves the user experience for those who regularly interact with the site Toolbar by providing fast, full access to all links in the site Toolbar without having to click to get there.').'</p>';
return$output;
}
}
/**
* Adds toolbar-specific attributes to the menu link tree.
* Adds admin toolbar specific attributes to the menu link tree.
*
* Mostly adds icon CSS classes to each link based on its route and a title
* attribute with the link description for accessibility.