public function UserData::__construct

Constructs a new user data service.

Parameters

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

File

drupal/core/modules/user/lib/Drupal/user/UserData.php, line 30
Contains Drupal\user\UserData.

Class

UserData
Defines the user data service.

Namespace

Drupal\user

Code

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