function UserData::__construct

Constructs a new user data service.

Parameters

\Drupal\Core\Database\Connection $connection: The database connection to use.

File

core/modules/user/src/UserData.php, line 25

Class

UserData
Defines the user data service.

Namespace

Drupal\user

Code

public function __construct(Connection $connection) {
  $this->connection = $connection;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.