You are here

public function ContentReportService::__construct in Open Social 8.5

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  2. 8.6 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  3. 8.7 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  4. 8.8 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  5. 10.3.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  6. 10.0.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  7. 10.1.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  8. 10.2.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()

Constructor for ContentReportService.

Parameters

\Drupal\flag\FlagServiceInterface $flag_service: Flag service.

\Drupal\Core\Session\AccountProxyInterface $current_user: Current user.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

File

modules/social_features/social_content_report/src/ContentReportService.php, line 51

Class

ContentReportService
Provides a content report service.

Namespace

Drupal\social_content_report

Code

public function __construct(FlagServiceInterface $flag_service, AccountProxyInterface $current_user, ModuleHandlerInterface $module_handler) {
  $this->flagService = $flag_service;
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
}