class User7

  1. 8.0.x lib/Drush/User/User7.php User7
  2. 7.x lib/Drush/User/User7.php User7
  3. master lib/Drush/User/User7.php User7

Namespace

Drush\User

Hierarchy

Expanded class hierarchy of User7

Members

Contains filters are case sensitive
Name Modifiers Type Descriptionsort descending
UserVersion::load_by_uid public function Attempt to load a user account.
UserVersion::load_by_name public function Attempt to load a user account.
UserVersion::load_by_mail public function Attempt to load a user account.
UserVersion::getCurrentUserAsSingle public function Load the current user account and return a UserSingle instance.
UserVersion::getCurrentUserAsAccount public function Load the current user account.
UserVersion::setCurrentUser public function Set the current "global" user account in Drupal.
User7::create public function {inheritdoc} Overrides UserVersion::create

File

lib/Drush/User/User7.php, line 5

View source
class User7 extends UserVersion {

  /**
   * {inheritdoc}
   */
  public function create($properties) {
    $account = user_save(NULL, $properties, NULL);
    return new UserSingle7($account);
  }
}