That's a quite common case that theme layout has not right place for Masquerade block, especially at development time. Therefore default admin theme (Seven) is built without sidebars and the block is forced to be in main content region. I propose attaching a simple floating button for masquerading / unmasquerading.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi’s picture

Status: Active » Needs review
FileSize
3.77 KB

Status: Needs review » Needs work

The last submitted patch, 1: masquerade-ui_improvement-2448271-0.patch, failed testing.

Chi’s picture

Status: Needs work » Needs review
FileSize
3.79 KB

Cleanup

andypost’s picture

Issue tags: +Needs screenshots

Thanx for idea, technical implementation suppose should be a bit different
This approach solves at last current regression of absence unmasquerade link (seems menu changes)

Also I thought about svg icon for right area of toolbar but toolbar is not enabled for authenticated users in standard profile so we need default menu link in any standard menus.
Having a dialog form to masquerade require to add setting for redirect or front route because modal have no referer to redirect

Chi’s picture

Issue tags: -Needs screenshots
FileSize
67.63 KB

so we need default menu link in any standard menus

Many sites do not use standard menus.

andypost’s picture

FileSize
5.74 KB
547 bytes

Take a loot at comment and user module *.links.menu.yml files they provide links for standard profile. I just can't get why access for them is not checked right now

andypost’s picture

It makes sense to use the same approach as \Drupal\user\Plugin\Menu\LoginLogoutMenuLink does in core now

Wim Leers’s picture

That makes sense :)

andypost’s picture

andypost’s picture