Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
This dates back from when outputting something on a user profile required a implementing a dedicating hook.
This appears to still be relevant to user entities on D8, but there's no output for this currently.
In the new way of working
Comment | File | Size | Author |
---|---|---|---|
#7 | Screen Shot 2017-01-09 at 22.45.01.png | 21.12 KB | joachim |
#3 | Screen Shot 2016-12-18 at 15.32.55.png | 20.57 KB | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim as a volunteer commentedA quick search in the code for this shows that nothing actually *uses* this option!
There's showOnProfile(), but only the configuration form calls it.
So it's currently a completely dead option!!! O_o
In D7, this was used in hook_user_view():
In D7, hook_user_view() was its own hook. On D8, it still exists, but just as a derivation of hook_ENTITYTYPE_view().
However, it does appear to still have special handling: see this CR: https://www.drupal.org/node/1893032
So the next step is to investigate what the special handling looks like, and how it compares to what we had on D7, and determine whether this is a regression.
Comment #3
joachim CreditAttribution: joachim as a volunteer commentedOutput on D7:
On D8 we no longer have the 'History' heading, so I assume that means the headings have gone completely.
Comment #4
joachim CreditAttribution: joachim as a volunteer commentedHmm though on D8 these items are just pseudofields, just formatted differently -- see user_entity_extra_field_info().
Comment #5
martin107 CreditAttribution: martin107 as a volunteer commentedI am coming to this issue, triaging the beta blockers.
We now have access control on a per flag type basis
While working on that we touched on show_on_profile
Here is a the relevant comment
https://www.drupal.org/node/2716613#comment-11830878
I would like to do the cleanup/removal aspect of that issue here.
I am not going to comment further, I am still looking over our 10 beta blockers and getting things in order.
Comment #6
joachim CreditAttribution: joachim as a volunteer commentedYup, this issue is to discuss implementation or removal.
Comment #7
joachim CreditAttribution: joachim as a volunteer commentedMy user profile on D8, showing a normal pseudofield flag:
The difference is that the user profile field has a label (which on D7 appears to be the admin label of the flag? needs checking!)
On D7 we have the Actions section heading, but my brief investigation seemed to show that the headings don't exist any more -- certainly there's no History heading on my profile.