public function UserStatistics::__construct in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
- 8.8 modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
- 10.3.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
- 10.0.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
- 10.2.x modules/social_features/social_profile/src/UserStatistics.php \Drupal\social_profile\UserStatistics::__construct()
Constructor for UserStatistics.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection.
File
- modules/
social_features/ social_profile/ src/ UserStatistics.php, line 27
Class
- UserStatistics
- Class UserStatistics.
Namespace
Drupal\social_profileCode
public function __construct(Connection $connection) {
$this->database = $connection;
}