diff --git a/core/modules/user/src/Plugin/views/field/Name.php b/core/modules/user/src/Plugin/views/field/Name.php index 4f46a50..93d80dc 100644 --- a/core/modules/user/src/Plugin/views/field/Name.php +++ b/core/modules/user/src/Plugin/views/field/Name.php @@ -69,7 +69,9 @@ public function buildOptionsForm(&$form, &$form_state) { * {@inheritdoc} */ protected function renderLink($data, ResultRow $values) { - $account = $this->getEntity($values); + $account = entity_create('user'); + $account->uid = $this->getValue($values, 'uid'); + $account->name = $this->getValue($values); if (!empty($this->options['overwrite_anonymous']) && !$account->id()) { // This is an anonymous user, and we're overwriting the text.