Mercurial > hg > isophonics-drupal-site
comparison core/modules/user/src/Plugin/Search/UserSearch.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 7a779792577d |
children |
comparison
equal
deleted
inserted
replaced
17:129ea1e6d783 | 18:af1871eacc83 |
---|---|
144 $accounts = $this->entityManager->getStorage('user')->loadMultiple($uids); | 144 $accounts = $this->entityManager->getStorage('user')->loadMultiple($uids); |
145 | 145 |
146 foreach ($accounts as $account) { | 146 foreach ($accounts as $account) { |
147 $result = [ | 147 $result = [ |
148 'title' => $account->getDisplayName(), | 148 'title' => $account->getDisplayName(), |
149 'link' => $account->url('canonical', ['absolute' => TRUE]), | 149 'link' => $account->toUrl('canonical', ['absolute' => TRUE])->toString(), |
150 ]; | 150 ]; |
151 if ($this->currentUser->hasPermission('administer users')) { | 151 if ($this->currentUser->hasPermission('administer users')) { |
152 $result['title'] .= ' (' . $account->getEmail() . ')'; | 152 $result['title'] .= ' (' . $account->getEmail() . ')'; |
153 } | 153 } |
154 $this->addCacheableDependency($account); | 154 $this->addCacheableDependency($account); |