Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I cannot find anything useful in the D8 changelog nor any comment on the D7 function how I'm able to upgrade the function to D8. Can you help, please?
function realname_user_view(array &$build, \Drupal\Core\Entity\EntityInterface $entity, \Drupal\Core\Entity\Display\EntityViewDisplayInterface $display, $view_mode) {
if (user_view_access($account)) {
$markup = l($account->realname, 'user/' . $account->id());
}
else {
$markup = Html::escape($account->realname);
}
...
Comments
Comment #2
hass CreditAttribution: hass commentedComment #3
hass CreditAttribution: hass commented