You are here

public function ContentReportService::__construct in Open Social 10.1.x

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.5 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  3. 8.6 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  4. 8.7 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  5. 8.8 modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  6. 10.3.x modules/social_features/social_content_report/src/ContentReportService.php \Drupal\social_content_report\ContentReportService::__construct()
  7. 10.0.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.

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The request stack.

File

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

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, RequestStack $requestStack) {
  $this->flagService = $flag_service;
  $this->currentUser = $current_user;
  $this->moduleHandler = $module_handler;
  $this->requestStack = $requestStack;
}