Adding an entity parameter to template_preprocess_username() for its context invocation

Created on 8 December 2013, over 10 years ago
Updated 30 January 2023, over 1 year ago

It was brought to my attention http://drupalcode.org/project/anonymous_posting.git/blob/refs/heads/7.x-... that this is no longer possible. A little git digging found in #2026347: Adding methods to UserInterface/AccountInterface β†’ :

-    '#account' => $node,
+    '#account' => user_load($node->uid),

which, of course, is correct because $node is not a user object and would fatal on object hinting but nonetheless: this is a regression. Perhaps pass in #node or #entity or something.

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
User moduleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡¨πŸ‡¦Canada chx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • The Needs Review Queue Bot β†’ tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

    Consult the Drupal Contributor Guide β†’ to find step-by-step guides for working with issues.

Production build 0.69.0 2024