Skip to content
Snippets Groups Projects

Fix Usernames with dashes

Closed nicxvan requested to merge issue/do_username-3464064:3464064-usernames-with-spaces into 2.x
1 unresolved thread

Closes #3464064

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
95 95 */
96 96 protected function viewValue(FieldItemInterface $item) {
97 97 $settings = $this->getSettings();
98 $originalUsername = $item->value;
99 $username = strtolower($originalUsername);
100 $username = str_replace(' ', '-', $username);
  • Please register or sign in to reply
    Loading