Problem/Motivation

Follow up from #287292-129: Add functionality to impersonate a user. The documentation on AccountProxyInterface::setAccount() needs to be updated to point to the account_switcher service as a safer way to "impersonate" another user.

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue category Task because it is a follow-up to a normal bug fix
Unfrozen changes Unfrozen because it only changes documentation

Proposed resolution

Update the documentation

Remaining tasks

Reviews
Commit

User interface changes

None

API changes

None

CommentFileSizeAuthor
account_switcher_docs.patch861 bytesalmaudoh
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Looks good for me

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

This issue is an unfrozen change (documentation) as per https://www.drupal.org/core/beta-changes and it's benefits outweigh any disruption. Committed cc06a92 and pushed to 8.0.x. Thanks!

  • alexpott committed cc06a92 on 8.0.x
    Issue #2378329 by almaudoh: Update AccountProxyInterface::setAccount()...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.