function UserData::__construct

Same name in this branch
  1. 8.9.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
  2. 8.9.x core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
Same name in other branches
  1. 9 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
  2. 9 core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
  3. 9 core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
  4. 10 core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
  5. 10 core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
  6. 10 core/modules/user/src/UserData.php \Drupal\user\UserData::__construct()
  7. 11.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\UserData::__construct()
  8. 11.x core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
  9. 11.x core/modules/user/src/UserData.php \Drupal\user\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.