Back to AbstractMenu class

Method setUser

public void
setUser
(mixed $user)
Setter for the current user used to build menu.
Parameters
  • \Joomla\CMS\User\User $user The new user to set.
Returns
  • void
Since
  • 3.9.26
Class: AbstractMenu
Project: Joomla

Method setUser - Source code

/**
 * Setter for the current user used to build menu.
 *
 * @param   User  $user  The new user to set.
 *
 * @return  void
 *
 * @since 3.9.26
 */
public function setUser($user)
{
    $this->storedUser = $user;
}