You are here

public function FlagSubscriber::__construct in Open Social 8.5

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

Creates a DiffFormatter to render diffs in a table.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Drupal\Core\Cache\CacheTagsInvalidatorInterface $cache_invalidator: The cache tags invalidator service.

\Drupal\social_content_report\ContentReportServiceInterface $social_content_report: The content report service.

File

modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php, line 63

Class

FlagSubscriber
Class FlagSubscriber.

Namespace

Drupal\social_content_report\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, MessengerInterface $messenger, CacheTagsInvalidatorInterface $cache_invalidator, ContentReportServiceInterface $social_content_report) {
  $this->unpublishImmediately = $config_factory
    ->get('social_content_report.settings')
    ->get('unpublish_threshold');
  $this->messenger = $messenger;
  $this->cacheInvalidator = $cache_invalidator;
  $this->socialContentReport = $social_content_report;
}