src/User/UserEditService.php
public function getChoicesAsEmailUsername(array &$choices)
    {
        $ret = [];
        foreach ($choices as $item) {
            $ret[] = sprintf('%s (%s)', $item->getEmail(), $item->getUsername());
        }

        return $ret;
    }
public function getChoicesAsEmailUsername(array &$choices)
    {
        $ret = [];
        foreach ($choices as $item) {
            $ret[] = sprintf('%s (%s)', $item->getEmail(), $item->getUsername());
        }

        return $ret;
    }
public function getChoicesAsEmailUsername ( array & $ choices ) { $ ret = [ ] ; foreach ( $ choices as $ item ) { $ ret [ ] = sprintf ( '%s (%s)' , $ item -> getEmail ( ) , $ item -> getUsername ( ) ) ; } return $ ret ; }
Get selector choices as combined username+email

@param User[] $choices

@return string[]
Get selector choices as combined username + email