Back to UserFactoryInterface class

Method loadUserById

public \Joomla\CMS\User\User
loadUserById
(int $id)
Method to get an instance of a user for the given id.
Parameters
  • int $id The id
Returns
  • \Joomla\CMS\User\User
Since
  • 4.0.0

Method loadUserById - Source code

/**
 * Method to get an instance of a user for the given id.
 *
 * @param   int  $id  The id
 *
 * @return  User
 *
 * @since   4.0.0
 */
public function loadUserById(int $id) : User;