public function FlagSubscriber::__construct in Open Social 10.1.x
Same name and namespace in other branches
- 8.9 modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 8.5 modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 8.6 modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 8.7 modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 8.8 modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 10.3.x modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 10.0.x modules/social_features/social_content_report/src/EventSubscriber/FlagSubscriber.php \Drupal\social_content_report\EventSubscriber\FlagSubscriber::__construct()
- 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\EventSubscriberCode
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;
}