Skip to content
Snippets Groups Projects

Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers

Open Issue #2845319: The highlighting of the 'Home' menu-link does not respect query strings and fragment identifiers
2 unresolved threads
Open Ben Mullins requested to merge issue/drupal-2845319:2845319-the-highlighting-of into 9.3.x
2 unresolved threads
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
  • a57fe2aa
    Issue #3263201 by manuel.adan: Missing argument type on hook_shortcut_default_set declaration · a57fe2aa
    Jess authored
    (cherry picked from commit 25abb4d9)
@@ -24,14 +24,14 @@
@@ -24,14 +24,14 @@
* modules implement this hook, the last (i.e., highest weighted) module which
* modules implement this hook, the last (i.e., highest weighted) module which
* returns a valid shortcut set name will prevail.
* returns a valid shortcut set name will prevail.
*
*
* @param $account
* @param \Drupal\Core\Session\AccountInterface $account
* The user account whose default shortcut set is being requested.
* The user account whose default shortcut set is being requested.
*
*
* @return string
* @return string
* The name of the shortcut set that this module recommends for that user, if
* The name of the shortcut set that this module recommends for that user, if
* there is one.
* there is one.
*/
*/
function hook_shortcut_default_set($account) {
function hook_shortcut_default_set(\Drupal\Core\Session\AccountInterface $account) {
// Use a special set of default shortcuts for administrators only.
// Use a special set of default shortcuts for administrators only.
$roles = \Drupal::entityTypeManager()->getStorage('user_role')->loadByProperties(['is_admin' => TRUE]);
$roles = \Drupal::entityTypeManager()->getStorage('user_role')->loadByProperties(['is_admin' => TRUE]);
$user_admin_roles = array_intersect(array_keys($roles), $account->getRoles());
$user_admin_roles = array_intersect(array_keys($roles), $account->getRoles());
Loading