diff --git a/core/modules/user/src/Plugin/views/field/Name.php b/core/modules/user/src/Plugin/views/field/Name.php index 519a2aa..40370c9 100644 --- a/core/modules/user/src/Plugin/views/field/Name.php +++ b/core/modules/user/src/Plugin/views/field/Name.php @@ -83,7 +83,7 @@ protected function renderLink($data, ResultRow $values) { $account = entity_create('user'); if (!empty($this->options['overwrite_anonymous']) && !$account->id()) { // This is an anonymous user, and we're overwriting the text. - return check_plain($this->options['anonymous_text']); + return String::checkPlain($this->options['anonymous_text']); } if (!empty($this->options['link_to_user']) || !empty($this->options['format_username'])) { $account->uid = $this->getValue($values, 'uid');