Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UserData.php

function UserData::__construct

Same name in this branch
  1. 11.1.x core/modules/user/src/Plugin/migrate/destination/UserData.php \Drupal\user\Plugin\migrate\destination\UserData::__construct()
  2. 11.1.x core/modules/user/src/Plugin/views/field/UserData.php \Drupal\user\Plugin\views\field\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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal