public function ContentReportService::__construct in Open Social 8.7
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 8.5 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 8.6 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 8.8 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 10.3.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 10.0.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 10.1.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
- 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_reportCode
public function __construct(FlagServiceInterface $flag_service, AccountProxyInterface $current_user, ModuleHandlerInterface $module_handler) {
$this->flagService = $flag_service;
$this->currentUser = $current_user;
$this->moduleHandler = $module_handler;
}