You are here

public function ConfigEventsSubscriber::__construct in Open Social 8.8

Same name and namespace in other branches
  1. 8.9 modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()
  2. 8.7 modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()
  3. 10.3.x modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()
  4. 10.0.x modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()
  5. 10.1.x modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()
  6. 10.2.x modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php \Drupal\social_profile_privacy\EventSubscriber\ConfigEventsSubscriber::__construct()

ConfigEventsSubscriber constructor.

Parameters

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The Drupal entity type handler.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_channel_factory: A way for this module to log messages.

File

modules/social_features/social_profile/modules/social_profile_privacy/src/EventSubscriber/ConfigEventsSubscriber.php, line 50

Class

ConfigEventsSubscriber
Class ConfigEventSubscriber.

Namespace

Drupal\social_profile_privacy\EventSubscriber

Code

public function __construct(ModuleHandlerInterface $module_handler, EntityTypeManagerInterface $entity_type_manager, LoggerChannelFactoryInterface $logger_channel_factory) {
  $this->moduleHandler = $module_handler;
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger_channel_factory
    ->get('social_profile_privacy');
}