Back to CMSApplicationInterface class

Method loadIdentity

public $this
loadIdentity
(\Joomla\CMS\User\User $identity = null)
Allows the application to load a custom or default identity.
Parameters
  • \Joomla\CMS\User\User $identity An optional identity object. If omitted, the factory user is created.
Returns
  • $this
Since
  • 4.0.0

Method loadIdentity - Source code

/**
 * Allows the application to load a custom or default identity.
 *
 * @param   User  $identity  An optional identity object. If omitted, the factory user is created.
 *
 * @return  $this
 *
 * @since   4.0.0
 */
public function loadIdentity(User $identity = null);