Seditio Source
Root |
./othercms/xenForo 2.2.8/src/XF/Pub/View/Member/Find.php
<?php

namespace XF\Pub\View\Member;

use
XF\Mvc\View;

class
Find extends View
{
    public function
renderJson()
    {
       
$results = [];
        foreach (
$this->params['users'] AS $user)
        {
           
$avatarArgs = [$user, 'xxs', false, ['href' => '']];

           
$results[] = [
               
'id' => $user->username,
               
'iconHtml' => $this->renderer->getTemplater()->func('avatar', $avatarArgs),
               
'text' => $user->username,
               
'q' => $this->params['q']
            ];
        }

        return [
           
'results' => $results,
           
'q' => $this->params['q']
        ];
    }
}