function user_view_multiple
user_view_multiple($accounts, $view_mode = 'full', $langcode = NULL)
Constructs a drupal_render() style array from an array of loaded users.
Parameters
\Drupal\user\UserInterface[] $accounts: An array of user accounts as returned by User::loadMultiple().
string $view_mode: (optional) View mode, e.g., 'full', 'teaser', etc. Defaults to 'teaser.'
string|null $langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.
Return value
array An array in the format expected by drupal_render().
File
- core/modules/user/user.module, line 901
- Enables the user registration and login system.
Code
function user_view_multiple($accounts, $view_mode = 'full', $langcode = NULL) { return entity_view_multiple($accounts, $view_mode, $langcode); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!user!user.module/function/user_view_multiple/8.1.x